-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

David Delbecq wrote:
> 32 bits architecture, a memory pointer is 32 bits and thus can only
> address memory ranges between 0 to 2^32, that makes 4G
> back in kernel 2.4 time

Pointers didn't get bigger in 2.6, so the 4GB process limit is still
there in 32-bit 2.6 linux kernels.

> This has changed. An new architecture was brought in CPU (at pentium
> II time?) that allowed OS to do a 4G/4G mapping in 32 bits mode.

I don't think this has anything to do with hardware. Apparently, certain
32-bit versions of Solaris do not have this problem, and Java can use as
much memory as any process.

> So, 4G is the maximum memory any application can allocate in 32 bits
> modes, be it at one time or in several operations.

Right, but we're talking about a 2GB limit.

> At least that's how i understood story. I only have 1G ram +1G swap, i
> can't test, but it bet using a kernel 2.6 you can use 4G for your jvm...

Nope:

[EMAIL PROTECTED] ~/projects/diagnosis $ uname -a
Linux chadis 2.6.14-gentoo-r5 #2 PREEMPT Sat Dec 17 16:30:55 EST 2005
i686 AMD Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux
[EMAIL PROTECTED] ~/projects/diagnosis $ java -Xms1732M -Xmx1732M JDBCTest
Error occurred during initialization of VM
Could not reserve enough space for object heap

If I decrease the heap size by 1M, it works. <shrug>

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+Av89CaO5/Lv0PARApLQAKCsfJClSdo9EgqR3ME7sw3NNxibsQCdEPFS
HWANdJSSiKM4awlb1TcoqGo=
=DERq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to