tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [OT] apache-tomcat-6.0.29 will not start with more then 1024mb memory assigned - windows
Date Fri, 08 Oct 2010 15:33:39 GMT
Hash: SHA1


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
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message