Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

Re: [groovy-user] How to setup the JAVA_OPTS in groovy?

tim.yates

2010-03-13

Replies: Find Java Web Hosting

Author LoginPost Reply
Swapping to linux (on the same hardware) won't necessarily speed anything up.

If it's not a memory issue, attacking the problem in a different way might do though

Tim

On Sat, Mar 13, 2010 at 11:24 PM, hix li <hix_li@yahoo.ca> wrote:
Unfortunately, it's under windows vista.
:(
Actually I am considering changing to linux like ubuntu as an alternative if things can't be speed up in windows.
 
Hix


--- On Sat, 3/13/10, Tim Yates <tim.yates@gmail.com> wrote:

From: Tim Yates <tim.yates@gmail.com>
Subject: Re: [groovy-user] How to setup the JAVA_OPTS in groovy?
To: user@groovy.codehaus.org
Received: Saturday, March 13, 2010, 4:05 PM


Are you running on linux or OS X?  You can see the memory usage and the available memory per process using the top command

Otherwise, if you have some example code, we may be able to see a way of speeding things up?

Tim

On Sat, Mar 13, 2010 at 8:59 PM, hix li <hix_li@yahoo.ca> wrote:
I see then. My program is not out of memory, but it's slow. So I am thinking of increase the memory capacity for the program to see if it would make it faster.
 
:(
 
Hix


--- On Sat, 3/13/10, Tim Yates <tim.yates@gmail.com> wrote:

From: Tim Yates <tim.yates@gmail.com>
Subject: Re: [groovy-user] How to setup the JAVA_OPTS in groovy? Received: Saturday, March 13, 2010, 3:09 PM


Xmx sets the Maximum heap

It does not set how much memory your app will allocate on startup, just the level it's allowed to grow to.

I assume you're running out of memory?

Tim

On Sat, Mar 13, 2010 at 7:51 PM, hix li <hix_li@yahoo.ca> wrote:
I checked the link you mentioned. Yes, Xms is for the max memory capacity, not the running memory. Any way to specify the running memory?
 


--- On Sat, 3/13/10, Anders Viklund <viklund_anders@hotmail.com> wrote:

From: Anders Viklund <viklund_anders@hotmail.com>
Subject: RE: [groovy-user] How to setup the JAVA_OPTS in groovy? Received: Saturday, March 13, 2010, 7:18 AM


I guess the Xms is the maximum heap size to use, not the initial heap size.

see here:
http://jmol.sourceforge.net/docs/JmolUserGuide/ch02s07.html


Date: Sat, 13 Mar 2010 04:01:55 -0800
From: hix_li@yahoo.ca
To: user@groovy.codehaus.org
CC: hix_li@yahoo.ca
Subject: [groovy-user] How to setup the JAVA_OPTS in groovy?

I would like to allocate more memory for running groovy.
 
Is it by changing the JAVA_OPTS?
I have changed the groovy/bin/startGroovy.bat file, placing the command:

set JAVA_OPTS="-Xmx512m"
 
But the resource monitor tells that only 55M is allocated to groovy when it's running in windows.
 
Is there any other place that I should make change in order to allocate more memory for running groovy?
 
Thanks!
 
Hix
 
 



Hotmail: Free, trusted and rich email service. Get it now.


The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free!



The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free!


©2008 gg3721.com - Jax Systems, LLC, U.S.A.