Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

NetBean become very slow ...

Thread view: 
Ahan Hsieh - 11 Oct 2007 10:48 GMT
Hi, All:
   Recently I'm using the Sun NetBean IDE 5.5.1 in Windows, and I found
it'll become very slowing when long time no operation then open it.
In task manager if long time no use then use the NetBean, the memory will
become low;
then open NetBean it increase the memory and diffucult to use the editor.
   Fianlly it up to near 150M, then operation is smooth, would you tell me
what happend and how to avoid the memory decreasing ?

Regards. Ahan Hsieh
Eric Sosman - 11 Oct 2007 14:33 GMT
> Hi, All:
>     Recently I'm using the Sun NetBean IDE 5.5.1 in Windows, and I found
[quoted text clipped - 4 lines]
>     Fianlly it up to near 150M, then operation is smooth, would you tell me
> what happend and how to avoid the memory decreasing ?

    It sounds like Windows has decided to steal RAM away from
the idle NetBeans process and move its contents to the paging
disk.  When you reactivate the process, there's a page fault
and a disk I/O whenever it tries to access a swapped-out page.
If a lot of memory was paged out, there will be a lot of page-in
I/O's before it's RAM-resident again -- and since a disk access
is on the order of a hundred thousand times slower than a RAM
access, NetBeans runs slowly until it's got its memory back.

    I don't know how or whether you can tell Windows that you
don't want it to take memory away from NetBeans, even if NetBeans
is large (owns a lot of memory) and idle (is doing nothing useful
with it).  If you do manage it, you will of course be preventing
other, non-idle programs from using the memory devoted to NetBeans.
Only you can say whether that is a good or bad idea.

Signature

Eric Sosman
esosman@ieee-dot-org.invalid

Lew - 11 Oct 2007 17:13 GMT
>> Hi, All:
>>     Recently I'm using the Sun NetBean IDE 5.5.1 in Windows, and I found
[quoted text clipped - 14 lines]
> is on the order of a hundred thousand times slower than a RAM
> access, NetBeans runs slowly until it's got its memory back.

OTOH, if NetBeans is actually releasing the memory, go into the
$NETBEANS_HOME/etc/netbeans.conf file and increase the "-J-Xms" parameter.

For example, my netbeans.conf sets:

netbeans_default_options=
"-J-Dcom.sun.aas.installRoot=\"/opt/jeesdk/gf2b58g\"
 -J-server -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-ea
 -J-Dapple.laf.useScreenMenuBar=true -J-XX:+UseConcMarkSweepGC
 -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled"

(In the file this is all one line, wrapped here for Usenet.)

Perhaps you want to set -J-Xms64m or higher.

If Eric's assessment is correct, though, then this won't help.

Signature

Lew

Chronic Philharmonic - 12 Oct 2007 04:01 GMT
> Hi, All:
>    Recently I'm using the Sun NetBean IDE 5.5.1 in Windows, and I found
[quoted text clipped - 4 lines]
>    Fianlly it up to near 150M, then operation is smooth, would you tell me
> what happend and how to avoid the memory decreasing ?

It sounds like you need more RAM in your machine. I have an XP machine with
512 MB of RAM, and NetBeans doesn't run well at all. I have to close as many
other memory-resident apps as possible. I have another machine with 1 GB of
RAM, and NetBeans runs much better.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.