You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2010/10/08 17:33:39 UTC

Re: [OT] apache-tomcat-6.0.29 will not start with more then 1024mb memory assigned - windows

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

André,

On 10/8/2010 8:32 AM, André Warnier wrote:
> Hans Magne Helland wrote:
>> But now it uses a lot of CPU. Googled it, and saw people having
>> CPU-usage issues with ESX Vmware and Tomcat. Is this a known thing?
>
> As a bit of an outsider, I'd tell you that the CPU and RAM usage are a
> known thing, not particularly with Vmware or Tomcat, but with anything
> Java.
> The switch to 64-bit merely seems to double it.
> 
> But the guys on this list are all Java freaks, so they would probably
> not understand what we're talking about.  Or else they do, and they all
> have shares in Intel and Kingston.
> :-)

Let's be fair: we're Java fanboys, not Java freaks ;)

Switching to 64-bit will double the size of your pointers regardless of
programming language. Actually, Java can compress pointers even under a
64-bit environment to save space, so in that way, it might not balloon
memory use. :p

In my experience, Java does not use significantly more CPU than programs
of similar (and reasonable) complexity written in other languages: the
problem is that most people compare apples to oranges. They will compare
a "Hello World" program in Java and C and show you that the Java program
requires 6MB of heap just to get going and takes have a second to run
while the C program requires no heap whatsoever and runs instantaneously.

Yes, that's true. However, Java wasn't built to run trivial things like
"Hello World". Once you get into significant complexity, the playing
field levels quite dramatically. That's why, when writing programs, I
choose the technology that is appropriate for the situation instead of
running to one or another language/environment all the time. For
production operations, we use Java for all of our web apps, but we have
lots of utilities written in Perl, PHP, Bash scripts, and the occasional
C program: the right tool for the right job IMHO.

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

iEYEARECAAYFAkyvOdMACgkQ9CaO5/Lv0PAfdQCffhIakLmPycvlseZ2Y28B58vM
cjkAnRzv6M+sCbZzxrqmGChF255GZFNY
=2z2f
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org