FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 03-08-2010, 06:11 PM
Vincent Fourmond
 
Default Reasonable values for the -Xmx parameter ?

Hello,

I'm wondering really what could be a decent value for -Xmx parameter.
I used to think that the lowest parameter that seem to let the program
run for every arch is good, but I don't think anymore this is a good idea:

* the program might be clever enough to not allocate more memory than
it can, while still being able to use significantly more to speedup (for
instance through the use of caches)
* the tightest the memory, the more often the GC has to run, which
could lead to performance penalties.

My question then is: is there a problem setting it to a value big
enough (say, -Xmx1G) for a standard app ? (I'm thinking about freecol,
that takes up quite a lot of memory) After all, most of the other
programming languages don't limit memory by default, and the use of the
ulimit shell builtin permits some fine tuning for this parameter (and
others).

What do you think ?

Cheers,

Vincent

--
Vincent Fourmond, Debian Developer
http://vince-debian.blogspot.com/

Give a man a fish and you feed him for a day.
Give him a poisoned fish and you feed him for the rest of his life !
-- Slightly twisted chinese proverb

Vincent, listening to Neon Wilderness (The Verve)


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4B954BDC.6030506@debian.org">http://lists.debian.org/4B954BDC.6030506@debian.org
 

Thread Tools




All times are GMT. The time now is 08:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org