views:

52

answers:

2

I am trying to profile the memory usage of a program, but I keep getting a stack overflow error.

The netbeans memory settings I am using are as follows:

-J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m 

The project memory settings I am using are as follows:

-Xms256m -Xmx512m 

Here is screen shot.

I am not sure where 65 mb is coming from. Can someone please help me?

Thank you, Grae

PS: netbeans 6.5

+1  A: 

You didn't put -Xmx (max. heap size) for Netbeans itself, and the default is 64mb.

unbeli
A: 

I am having trouble logging back in, but my question is not answered.

I m now using netbeans settings as follows, but there is still some kind of 64m cap on the profiler.

netbeans_default_options="-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Dorg.glassfish.v3.installRoot=\"C:\Program Files\glassfish-v3-prelude\" -J-Dcom.sun.aas.installRoot=\"C:\Program Files\glassfish-v2ur2\" -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

Grae

Grae