JPDA Initial Heap Size

Please tell me how to change the default initial and max heap size for JPDA / debugee programs.

The typical non-standard options do not seem to work -

-Xms128m -Xmx256m

I am also using the following options -

-agentlib:jdwp=transport=dt_socket,server=y,address=8000

with JDK 5 (build 1.5.0_06-b05) and NB 5 (200601251500)

Thanks,

Jeff

[386 byte] By [aujeff] at [2007-11-26 10:51:34]
# 1
Does this question relate to debugging a java program from within the ide?
KarthikR at 2007-7-7 3:04:22 > top of Java-index,Development Tools,Java Tools...
# 2

Yes. I have tried several configurations, customize debug ant targets, attach to running JVM, all trying to increase the initial heap size used by the debugee.

In all cases, the heap starts around 30MB, which forces the developer to wait for several minutes for the heap to grow.

thanks,

jeff

aujeff at 2007-7-7 3:04:22 > top of Java-index,Development Tools,Java Tools...
# 3
Can you pl. try:- Right-click on project and select properties- Select 'Run' category- Specify the VM options.These options are presumably used while running the program and may also be used while the debugger runs it...
KarthikR at 2007-7-7 3:04:22 > top of Java-index,Development Tools,Java Tools...
# 4
Yes. I had already tried this. It does not have the desired effect when debugging. Your suggestion does change the initial heap size when I run the class / project outside the debugger.thanks,jeff
aujeff at 2007-7-7 3:04:22 > top of Java-index,Development Tools,Java Tools...
# 5

You may want to post this question on NetBeans forums (http://www.netbeans.org/community/lists/top.html) especially nbusers@netbeans.org (http://www.netbeans.org/servlets/SummarizeList?listName=nbusers), where the debugger experts are...

btw, have you tried '-J-Dnetbeans.debugger.jpda.transport=dt_shmem' startup option?

According to http://www.netbeans.org/kb/41/using-netbeans/configuring.html#performance_switc hes:

Force the IDE to use the shared memory connection when starting a debugging session with the Debug >Start command. This parameter has no effect when you attach the debugger to an already running process.

This may use the -X parameters passed to ide itself...

KarthikR at 2007-7-7 3:04:22 > top of Java-index,Development Tools,Java Tools...