Bug 32464 - sun.java2d.noddraw flag is missing in jmeter.bat and jmeterw.bat
Summary: sun.java2d.noddraw flag is missing in jmeter.bat and jmeterw.bat
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2004-12-01 10:34 UTC by Matthias Kerkhoff
Modified: 2005-03-12 06:06 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Kerkhoff 2004-12-01 10:34:47 UTC
Please add the option -Dsun.java2d.noddraw=true to both jmeter.bat and 
jmeterw.bat. I've seen dramatic performance improvements in gui mode after 
adding this flag, especially for high screen resolutions (> 1024x768).
Comment 1 Sebb 2004-12-01 14:10:25 UTC

Do you happen to know if this flag would help on other OSes? 
i.e. should it also be added to the Un*x shell script(s)?
Comment 2 Matthias Kerkhoff 2004-12-01 16:31:16 UTC
I don't think that sun.java2d.noddraw makes sense on non-windows platforms but 
I'm not absolutly sure. The setting is DirectDraw related, so it should usually 
have no effect on other platforms. 
Comment 3 Sebb 2004-12-02 23:49:39 UTC

BTW, as a work-round until the batch file is updated, one can define additional
JVM arguments as follows:

set JVM_ARGS=-Dsun.java2d.noddraw=true

This will be picked up by the jmeter[w] .bat files
Comment 4 Sebb 2004-12-18 00:57:56 UTC
Google finds a few pages that suggest this as a work-round for problems with
remote access applications such as pcAnywhere. However, these also say that
setting the property may slow down the application when used locally.

I've tried the setting on WinNT and WinXP, and it does not seem to make a
noticeable difference.
Comment 5 Matthias Kerkhoff 2005-02-14 14:03:19 UTC
Eventually, this depends on the resolution of your graphics card or the model. 
I'm see significant differences at 1280x1024 and 1600x1200 with a Matrax P650.
Comment 6 Sebb 2005-03-12 15:06:11 UTC
Found http://java.sun.com/products/java-media/2D/perf_graphics.html which
explains this and other settings.

Since they may not improve matters on all systems, I'm going to add them but
commented out.