Re: SableVM on OpenWRT
Etienne Gagnon <[email protected]> Thu, 04 May 2006 13:46:43 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============2141139700==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="------------enigB08F0DDED9282A16A5EB03B6"
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB08F0DDED9282A16A5EB03B6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi Stefan,
You should read the SableVM manual to control the various memory
defaults of SableVM. e.g.
$ sablevm --property="sablevm.heap.size.min=1024" \
--property="sablevm.heap.size.increment=1024" \
MyApp
or
$ java-sablevm -Dsablevm.heap.size.min=1024 \
-Dsablevm.heap.size.increment=1024 \
MyApp
Usually, you should let the *.size.max unset (or set to 0), so that
SableVM will grow memory usage as needed by the application. Setting a
lower max value will only cause useless out of memory errors.
$ man sablevm
...
MEMORY USAGE CONTROL PROPERTIES
There exist a number of properties that can be used to tune
memory usage of SableVM. Normally it is NOT needed to use any of them,
as SableVM will take care of allocating as much memory, as your
application needs and of freeing the mem-
ory when it is not needed anymore. Still, there are some
situations when you want to tune or limit maximum memory usage.
The general pattern of available memory controlling properties is:
sablevm.[stack,classloader.heap].size.[min,max,increment]
which tranlates into the following set of available properties:
sablevm.stack.size.min
sablevm.stack.size.max
sablevm.stack.size.increment
sablevm.heap.size.min
sablevm.heap.size.max
sablevm.heap.size.increment
sablevm.classloader.size.min
sablevm.classloader.size.max
sablevm.classloader.size.increment
These properties allow for control over java stack, java
heap, and java class loader.
Meaning of the min, max, increment suffixes is the following:
...min initial size in bytes,
...max maximal size in bytes (hard limit); 0 means "no limit",
...increment step by which the amount of memory is
incremented when needed, up to the limit specified in max, if any; 0
means "fixed size" (no changes allowed, min is used).
Etienne
Stefan Arentz wrote:
> I'm trying to find out how well a free and open java virtual machine can
> run on something smallish like a Linksys WRT54G running OpenWRT (Linux 2.4).
>
> My biggest concern is memory usage.
> ...
--
Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/
--------------enigB08F0DDED9282A16A5EB03B6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEWj4DjyrJi4rH84gRAtwDAJ4xTxMGobPE+qxbvpt5mmMqFS+eXQCfaw13
2J98L5ERJhVrjo/2Cs/96bQ=
=F6JF
-----END PGP SIGNATURE-----
--------------enigB08F0DDED9282A16A5EB03B6--
--===============2141139700==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
SableVM-user mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-user
--===============2141139700==--