Discussion:
Excessive memory use for Netbeans IDE 6.8?
kkathman
15 years ago
Permalink
I just downloaded the Netbeans IDE 6.8 for PHP only, and installed only two additional plugins...one for JavaScript editing and an additional PHP validator. The program is using over 500MB of memory which seems excessive considering a similar IDE, Aptana, takes up about half that space.

Are there tweaks or tips that can be done to reduce this or is the program THAT big?

Thanks,
korky
Javier Ortiz
15 years ago
Permalink
There seems to be a memory leak. I'm having the same issue on dev builds.
Post by kkathman
I just downloaded the Netbeans IDE 6.8 for PHP only, and installed only two
additional plugins...one for JavaScript editing and an additional PHP
validator. The program is using over 500MB of memory which seems excessive
considering a similar IDE, Aptana, takes up about half that space.
Are there tweaks or tips that can be done to reduce this or is the program THAT big?
Thanks,
korky
Mark Wade
15 years ago
Permalink
What platforms are you guys using?
Post by Javier Ortiz
There seems to be a memory leak. I'm having the same issue on dev builds.
I just downloaded the Netbeans IDE 6.8 for PHP only, and installed
only two additional plugins...one for JavaScript editing and an
additional PHP validator. The program is using over 500MB of memory
which seems excessive considering a similar IDE, Aptana, takes up
about half that space.
Are there tweaks or tips that can be done to reduce this or is the program THAT big?
Thanks,
korky
Mark Wade
***@optonline.net
kkathman
15 years ago
Permalink
My environment is an iMac with 2GB memory, 3.06GHz Intel Core 2 Duo, running Mac OS X 10.6.2 (Snow Leopard)

Korky
Javier Ortiz
15 years ago
Permalink
I'm seeing that on Windows XP with 4 GB, 3.06GHz Intel Core 2 Duo, Java
1.6.18
Post by kkathman
My environment is an iMac with 2GB memory, 3.06GHz Intel Core 2 Duo,
running Mac OS X 10.6.2 (Snow Leopard)
Korky
Mark Wade
15 years ago
Permalink
You're both using Java 6. Are you both using 64-bit JDKs?

I'm not really going anywhere here. I just asked because Korky posted
very high memory usage
especially for a comparatively small distribution.

With a full distribution on MacOSX 10.5.8 JDK5 my physical memory
usage is 204.88 MB, Virtual Memory 1.49 GB.
With a full distribution on CentOS5 JDK 6 my physical memory usage is
139 MB, Virtual Memory 615.8 MB.
That's with tomcat started from NetBeans, more projects open on the
Mac, both are 32-bit.

It looks to me like it might be something specific to 64-bit
architectures.
Post by Javier Ortiz
I'm seeing that on Windows XP with 4 GB, 3.06GHz Intel Core 2 Duo,
Java 1.6.18
My environment is an iMac with 2GB memory, 3.06GHz Intel Core 2 Duo,
running Mac OS X 10.6.2 (Snow Leopard)
Korky
Mark Wade
***@optonline.net
Javier Ortiz
15 years ago
Permalink
I'm on Windows 32 bit. It works fine on Windows Vista at home.
...
kkathman
15 years ago
Permalink
Mark - specifics that I can share:

When I first boot NetBeans, it shows 286MB (and yes it shows Intel 64 bit). Other:

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb)

But, simply opening the "about" box ran the memory from 286 to 302MB. Closing that window didn't do anything. There are 16 Installed plugins:
Database
Subversion
Hudson
Local History
IDE Branding
Embedded Browser (UI/XUL)
Mercurial
IDE Platform
Team
CVS
PHP Symfony Framework
PHP
PHP Manual Search
RCP Platform
Software as a Service
Java Script Debugger


Korky
Mike Riley
15 years ago
Permalink
Post by kkathman
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb)
Database
Subversion
Hudson
Local History
IDE Branding
Embedded Browser (UI/XUL)
Mercurial
IDE Platform
Team
CVS
PHP Symfony Framework
PHP
PHP Manual Search
RCP Platform
Software as a Service
Java Script Debugger
The one thing I am hearing that seems to be in common is that you all seem
to be using a 64-bit version of Java. How about trying a 32-bit version?

I am using a 32-bit version, even though my Solaris runs 64-bit, and I do
not see these memory issues.

Mike
Korky Kathman
15 years ago
Permalink
Mike,

I would be happy to change to the 32-bit version, but how would I go about doing that? Do i need to download a new version the the IDE? I didn't do anything but download the Mac OS X version. i didn't see a different version out there.

Korky
...
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Mark Wade
15 years ago
Permalink
The problem with that on the Mac is you would have to use Java 5. Java
6 on Macs is 64-bit only.
...
Mark Wade
***@optonline.net
Mark Wade
15 years ago
Permalink
Maybe it isn't a problem. If the leak involves running NetBeans as a
64-bit java process you can just start it as a 32-bit process, which
in your case should be Java version 1.5.0_22-147, but still leave your
default Java version at 1.6.x. You would still be able to develop
with Java 6 libraries and run apps with Java 6 dependencies.

To accomplish that edit netbeans.conf in /Applications/NetBeans/
NetBeans 6.8/Contents/Resources/NetBeans/etc. Uncomment:
#netbeans_jdkhome="/path/to/jdk" and change it to something similar
to: netbeans_jdkhome="/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Home". You'll have to look and see what resides on
your machine.

MacOS X uses a symlink /Library/Java/Home, you can do something
similar to clean it up a bit if you want but you don't need to.

The system default Java version can be changed in /Applications/
Utilities/Java Preferences.app if you find you need to.
...
Mark Wade
***@optonline.net
Korky Kathman
15 years ago
Permalink
One other note... I did attempt to change the netbeans_jdkhome to the 1.5.0/Home, but when I subsequently launch Netbeans, the Activity Monitor still shows it running in 64-bit mode. Very stubborn application it seems.

Korky
...
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Michael Franz
15 years ago
Permalink
On my Snow Leopard install, 1.5 is linked to CurrentJDK and CurrentJDK is
linked to 1.6, that is probably why you ended up with java the same version

Michael
Post by Korky Kathman
One other note... I did attempt to change the netbeans_jdkhome to the
1.5.0/Home, but when I subsequently launch Netbeans, the Activity Monitor
still shows it running in 64-bit mode. Very stubborn application it seems.
Korky
Tomas Hurka
15 years ago
Permalink
Post by Mark Wade
The problem with that on the Mac is you would have to use Java 5.
Java 6 on Macs is 64-bit only.
This is not true. Mac OS X 10.6.x has both 32bit and 64bit version of
Java 6.

Bye,
--
Tomas Hurka <mailto:***@sun.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
Mark Wade
15 years ago
Permalink
Oh, that's good to know. I can't run 10.6 on my ppc machine.
I was under the impression that Java 6 was limited to 64-bit Intel Macs.
Or maybe it is but they have a 32 and a 64 bit Java implementation?

Anyway thanks for the correction.
Post by Tomas Hurka
Post by Mark Wade
The problem with that on the Mac is you would have to use Java 5.
Java 6 on Macs is 64-bit only.
This is not true. Mac OS X 10.6.x has both 32bit and 64bit version
of Java 6.
Bye,
--
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
Mark Wade
***@optonline.net
Korky Kathman
15 years ago
Permalink
How to switch to 32-bit version then?
...
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Mark Wade
15 years ago
Permalink
The same as I posted before. Edit netbeans.conf. You just need to
figure out what the path is to the 32-bit installation. It should be
similar to what I posted but I can't check it, I don't have the
hardware.

You can also start NetBeans from a command line using ./netbeans -
jdkhome=$JAVA32_HOME if you set that variable to the proper value and
your in the proper directory, or you can create a shell script named,
say "nb32" or something, that does all that for you. You can email me
if you'd like if your not familiar with that stuff and want to go that
route.
Post by Korky Kathman
How to switch to 32-bit version then?
'
...
Mark Wade
***@optonline.net
Mark Wade
15 years ago
Permalink
Post by Mark Wade
You can also start NetBeans from a command line using ./netbeans -
jdkhome=$JAVA32_HOME
I missed a dash there. Should be: ./netbeans --jdkhome=$JAVA32_HOME
(and maybe include a & at the end)


Mark Wade
***@optonline.net
Korky Kathman
15 years ago
Permalink
Hi Mark,

I had some difficulty chasing down all the information that you gave. I did find all the Java versions in the /System/Library/Frameworks/JavaVM.Framework/Versions and I have everything from 1.3 to what is called "Current JDK" 1.6.0 and a version called "A" are there

However, I dont see any directory that specifically seems to indicate 32-bit vs. 64-bit.

Now on the Mac there is a Java Preferences app that allows you to use the most appropriate version to use for Applets and for Applications. You can order the preferences of 32-bit and 64-bit here. I tried to uncheck the 64-bit for applications and it didn't allow me to do that. I switched the order, putting 32-bit first, but it seems that Netbeans Always uses 64bit if it can.

So, if I can't find the actual directory to the 32bit implementation, then I may need to fall back to 1.5.0 perhaps. Perhaps Tomas can lend a hand here

Korky
...
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Mark Wade
15 years ago
Permalink
Mac OS X uses a lot of symlinks in its Java directory structure. If I
had an Intel-based Mac it would be easier to help but I'll do what I
can.

In the terminal cd /System/Library/Frameworks/JavaVM.framework/
Versions then list the directory with ll(2 els, which is an alias for
'ls -lF'). Symlinks will show as: 1.5@ -> 1.5.0 and CurrentJDK@ ->
1.5. For now just deal with the directories that aren't links. The
path I believe you will eventually use for jdkhome will be of the form:

/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/home/
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/home/
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/home/

You'll be interested in anything with 1.6 in it. So for example, cd /
System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/home/ then
enter ./bin/java -version. You'll get back something like this:

java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-
b03-333-9M3125)
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing)

I don't know how Java displays whether it is 32 or 64 bit but I assume
that will do it. Keep going through the installs until you find the
32 bit Java 6 install and that will be the path to set jdkhome to,
ending with Home, not bin.

I don't know why there is a symbolic link "Current" that points to
"A". It seems like a duplicate of the install in 1.5.0 on my system.
Post by Korky Kathman
I had some difficulty chasing down all the information that you gave.
If you'd like I could forward the other couple of posts to you.
...
Mark Wade
***@optonline.net
Korky Kathman
15 years ago
Permalink
Thanks Mark.. will try that and let you know.
...
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Mike Riley
15 years ago
Permalink
Post by Korky Kathman
Thanks Mark.. will try that and let you know.
I hope it works. It seemed that the one common thing being mentioned was
that people seeing the problem were saying they were running with a 64-bit
version of Java. Hopefully I didn't lead you down the wrong path.

Mike
Korky Kathman
15 years ago
Permalink
Mike Riley --

I have been all over the Mac that I have and can't locate ANY 32 bit Java implementation. Everything is 64. Now my whole system isn't running at 64 bit mode actually, I found out. In order to make that happen you have to boot with the 6 and 4 held down. Otherwise it runs in 32 bit mode. The applications indicate that they run in 64 bit, but its not exactly true. In any case, Netbeans really eats up memory compared to a similar tool, Aptana Studio. Granted I probably need more memory to run a full featured IDE + Photoshop, but I'm still thinking that 500+ MB is pretty huge.

Korky
Post by Korky Kathman
Thanks Mark.. will try that and let you know.
I hope it works. It seemed that the one common thing being mentioned was that people seeing the problem were saying they were running with a 64-bit version of Java. Hopefully I didn't lead you down the wrong path.
Mike
Korky Kathman, CPIM
Senior Partner
Entropy Dynamics, LLC
972.393.1692
***@entdyn.com
Tomas Hurka
15 years ago
Permalink
HGi Korky,
Post by Korky Kathman
I had some difficulty chasing down all the information that you
gave. I did find all the Java versions in the /System/Library/
Frameworks/JavaVM.Framework/Versions and I have everything from 1.3
to what is called "Current JDK" 1.6.0 and a version called "A" are
there
However, I dont see any directory that specifically seems to
indicate 32-bit vs. 64-bit.
32-bit and 64-bit version are installed in the same directory.
...
If you run
java -help
you will find out that:
----------------------------------------
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available (implies -
server, only for x86_64)
-client to select the "client" VM
-server to select the "server" VM
-jvm is a synonym for the "client" VM [deprecated]
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
----------------------------------------
so "java -d32 -version" will run 32bit version and "java -d64 -
version" will run 64bit version.
To run NetBeans with 32bit Java use -J-d32 from commandline or edit
etc/netbeans.conf file and add -J-d32 to "netbeans_default_options"
property.

Bye,
--
Tomas Hurka <mailto:***@sun.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
Tomas Hurka
15 years ago
Permalink
Hi Mark,
Post by Mark Wade
Oh, that's good to know. I can't run 10.6 on my ppc machine.
I was under the impression that Java 6 was limited to 64-bit Intel Macs.
This is valid for 10.5 only.
Post by Mark Wade
Or maybe it is but they have a 32 and a 64 bit Java implementation?
Mac OS X 10.6 has 32-bit and 64-bit version of Java 6 and it runs on
both 32bit and 64bit Intel hardware. Of course you cannot run 64-bit
Java on 32-bit hardware. Also Mac OS X 10.6 contains only Java 6,
there is no Java 5 or Java 1.4.2. Home directory for for Java 5 and
Java 1.4.2 are there, but they all point to Java 6.

Bye,
--
Tomas Hurka <mailto:***@sun.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
kkathman
15 years ago
Permalink
After much cavorting around with this, I finally just had to give up. The application just kept gobbling up tons of memory and never gave it back. In general, I couldn't get it to stop and after about a half hour of regular use, I was again in excess of 500MB of memory, and it was kicking other applications out. Perhaps the folks at Sun can find the leak and fix it. Until then I think I'm going to have to abandon Netbeans and go back to Aptana Studio which never gets above 280MB no matter how many files you have open.

I will be checking back in the future in hopes that this might get fixed.
kkathman
15 years ago
Permalink
Good news that using the 32-bit command option, it caused a lower footprint, but it seems to just idly collect memory.

I opened the IDE, and loaded a modest PHP file of about 100 lines or so. This increased the footprint about 20MB, but it should be noted that I also connected to the JDBC Database Manager for my localhost access. This is a great feature, by the way.

But I simply let the browser sit. Gradually over a period of an hour or so, it gained about 2mb of memory. Now, when I CLOSED the file, the memory usage went up, and never went back down, even if I let it sit. Again, it gradually consumed about 0.1MB per 15-18 minutes.

I plan to use it extensively tomorrow to watch the memory usage, but I still believe that there is some sort of leak that just propagates for no reason whatsoever.
kkathman
15 years ago
Permalink
Alas, it seems that the same behavior occurs on the 32-bit version also.

As I worked today with my normal routine, the program launched at around 180MB. I loaded one program which was quite large, and it jumped to 279 (100mb??) then after just a few changes and saves of the program, I looked and the memory usage was up to 369MB. Obviously this is completely unacceptable.

I wonder if this is a Mac OS X issue? In all honesty, I have found that most all Java apps DO take up a lot of room and they all seem to have memory issues too.

Hopefully some one will look at this soon and perhaps correct the issues.
Michael Franz
15 years ago
Permalink
In general, I have found that Swing on OS X in Java 6 is pretty broken.
Since they did the switch to Cocoa.

Michael
I am curious if it is a JVM issue present only on the Mac. You might
consider filing a bug against the JVM, because that is where the memory leak
seems to be.
I certainly am not seeing this issue on my Solaris X86 system, so I wonder
if there is an issue with the underlying JVM that is specific to the OS X
implementation.
Mike
Mike Riley
15 years ago
Permalink
...
I am curious if it is a JVM issue present only on the Mac. You might
consider filing a bug against the JVM, because that is where the memory
leak seems to be.

I certainly am not seeing this issue on my Solaris X86 system, so I wonder
if there is an issue with the underlying JVM that is specific to the OS X
implementation.

Mike
talofo
15 years ago
Permalink
Hi all,

I'm quite new to netbeans (version 6.8), I'm also using the PHP module on a
MAC OS X 2x 2.66GHz Dual-Core Intel Xeon - 10.6.2 - 1GB 667 Mhz DDR2

340MB memory usage and, sometimes, 100% on the processor side.

Changing to 32 bits solution doesn't seem to work. :(


Has anyone found a solution?


Regards,
Márcio
talofo
15 years ago
Permalink
Actually, and as an add-on, I see that the issue, a.k.a the fact that I need 2 3 seconds on each cursor change, is due to the fact that the CPU usage is about 102% and the memory can reach the 402MB; So CPU usage is really a think.

I'm unable to work.

As a workaround, I'm just closing netbeans, wait for the processes activity to slow down... (about 4 minutes) and try again.

x.x
márcio
Mark Wade
15 years ago
Permalink
Maybe you guys can try this:

http://tedwise.com/2009/09/25/using-java-1-5-and-java-1-4-on-snow-leopard/

"Since Apple removed Java 1.5 and Java 1.4 from Snow Leopard, it's not
possible
to run software that requires older Java versions, or to develop
against older Java versions.
In order to restore Java 1.4 and 1.5 to your Snow Leopard install,
you'll need to download
the old Leopard versions and put them back where they belong in Snow
Leopard.
This will only work for Intel Macs."

or maybe soylatte:

http://www.netbeans.org/kb/61/java/javafx-jdk6-on-32-bit-mac.html

JavaFX is not supported under SoyLatte though. I would try the first.
Post by talofo
Actually, and as an add-on, I see that the issue, a.k.a the fact
that I need 2 3 seconds on each cursor change, is due to the fact
that the CPU usage is about 102% and the memory can reach the 402MB;
So CPU usage is really a think.
I'm unable to work.
As a workaround, I'm just closing netbeans, wait for the processes
activity to slow down... (about 4 minutes) and try again.
x.x
márcio
Mark Wade
***@optonline.net
Tomas Hurka
15 years ago
Permalink
Post by Mark Wade
http://tedwise.com/2009/09/25/using-java-1-5-and-java-1-4-on-snow-leopard/
"Since Apple removed Java 1.5 and Java 1.4 from Snow Leopard, it's
not possible
to run software that requires older Java versions, or to develop
against older Java versions.
In order to restore Java 1.4 and 1.5 to your Snow Leopard install,
you'll need to download
the old Leopard versions and put them back where they belong in Snow
Leopard.
This will only work for Intel Macs."
*Don't do it*.
See this <http://lists.apple.com/archives/Java-dev/2009/Dec/msg00045.html
Post by Mark Wade
email for details.
From the email above:

"hacking J2SE 5.0 onto your customer's 10.6 machines will only result
in broken customer machines down the line."

"Advocating ordinary users to make modifications to /System/Library/
Frameworks is going to result in lots of users with broken systems,
and no idea how to fix it. We see them in the 10.6 crash reports, and
paths like "1.5.0-leopard" give us a pretty good clue what they've
done to their system."

"the J2SE 5.0 source base was never made Snow Leopard compatible. If
it happens to work, that is completely accidental, because I know
specific things in the AWT that _will_not_work_ because the internal
functions they rely on are gone in 10.6."

[..]

Bye,
--
Tomas Hurka <mailto:***@sun.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
Mark Wade
15 years ago
Permalink
That's a convincing argument. It's sounding to me like Snow Leopard
and Apple's Java 1.6 implementation is a broken platform for Java
development.
Are you using NetBeans under Snow Leopard and not experiencing huge
memory leaks?
...
Mark Wade
***@optonline.net
kkathman
15 years ago
Permalink
Mark I don't think that's true about no 1.4 or 1.5 on Snow Leopard updates. If you buy a system that comes with Snow Leopard or do a clean install, that's possible perhaps.

My system came with Leopard, and when I upgraded to Snow, it didn't get rid of the other versions. I've got version 1.3 all the way up to current.

I think we've beat this horse fairly severely. It's not a 32 vs 64 bit issue. I have changed my netbeans.conf file to run in 32 and 64 bit modes, against 1.5 and 1.6. None of this changed the runaway memory.

The fact of the matte is that Sun has a product that is wonderfully feature rich, but poorly programmed from a memory management standpoint. It's clear that its NOT releasing memory, and that has to be addressed rather than chasing these other issues.

I'm torn because Aptana really isn't supporting PHP any more, so I have a dead end product. I was hoping NetBeans would be the product I went forward with, but with it running away with the memory, it's hard to be on board when Aptana 1.5 clocks in at round 260MB and stays there no matter how many files you have open or how much work you do.
Mark Wade
15 years ago
Permalink
Post by kkathman
I think we've beat this horse fairly severely
Yeah, I agree but to beat a dead horse one last time, you have 1.4 and
1.5 installed but are the symlinks pointing to them or have they been
changed to point to 1.6?
I'm just curious because we've been advised not to use 1.5 on Snow
Leopard.
...
Mark Wade
***@optonline.net
Tomas Hurka
15 years ago
Permalink
Post by kkathman
Mark I don't think that's true about no 1.4 or 1.5 on Snow Leopard
updates.
It is true.
Post by kkathman
If you buy a system that comes with Snow Leopard or do a clean
install, that's possible perhaps.
My system came with Leopard, and when I upgraded to Snow, it didn't
get rid of the other versions. I've got version 1.3 all the way up
to current.
If you have 1.3 or 1.4 directory in JavaVM.framework, it does not mean
there is JDK of that version. Even 1.5 is sym-linked to 1.6. Believe
me there is only JDK 6 available in Snow Leopard.

If you still do not believe me, try the following:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/
java -version
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/
java -version
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/bin/
java -version

[..]

Bye,
--
Tomas Hurka <mailto:***@sun.com>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
Gregg Wonderly
15 years ago
Permalink
I haven't kept up with all the details of this discussion, so pardon me if I'm
restating/requesting something that's already gone around.

The 1.6 version on MacOS X is a 64 bit application right? So, you will see
larger memory use for that JVM than for another 32bit JVM/application. Did you
set the -mx value to a larger value to see that it really does keep growing?

Have you used a profiler to see which objects are persisting in memory?

Gregg Wonderly
Tomas --
Are we saying, then, that there really is NO workaround for this at present?
In other words, until the Java VM is "fixed" for Mac OS X, we'll experience this?
If that's true, it saddens me a bit. I understand that Windows is the primary
platform for most of the world, but it would be nice if the 1.6 or whatever
Framework might be repaired/fixed/augmented.
Thnx.
kkathman
15 years ago
Permalink
Gregg -- Thanks for your help.
The 1.6 version on MacOS X is a 64 bit application right? So, you will see
larger memory use for that JVM than for another 32bit JVM/application. Did you
set the -mx value to a larger value to see that it really does keep growing?
Yes I've experimented with several things, Gregg. I usually boot to 64-bit OS, since that makes things a little faster. However, in the netbeans.conf file I inserted a -J-d32 in the default options to run the 32-bit VM.

I'm unfamiliar with the -mx value. Could you help me understand what that does and how I might implement that?


Code:
Have you used a profiler to see which objects are persisting in memory?



No I haven't. Can you suggest a way to do this?

Thanks.
talofo
15 years ago
Permalink
I have tried your suggestion, the first one.

It solved the issue, I still feel some lag, here a there, but nothing compared with the useless of previous behaviors.

Thank you a lot,
Márcio

Continue reading on narkive:
Search results for 'Excessive memory use for Netbeans IDE 6.8?' (Questions and Answers)
9
replies
I want to learn a language programming , Which one is beter ?
started 18 years ago
programming & design
Loading...