RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Jonadan
How big is your main memory? Compiling (both source JIT) consumes lots of memory. If your main memory is small, it can take a lot of initialization time! Gavan Hood wrote: My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very

RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Gavan Hood
I agree it will take time, i have 64MB of ram. I guess dotnets ability to compile on install would be useful here... i don't think there is an equivalent for java especially 1.4.2 that I am running. Has there been any progress on that in recent times ? If there is that would be great...

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Len Popp
How big is your Java heap? And how much of your 64MB is used by other (non-Tomcat) processes? If Tomcat is causing a lot of virtual memory swapping, it *may* help to decrease the size of the heap so it fits into main memory. But that may make the heap too small, so garbage collection becomes a

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavan, Gavan Hood wrote: | My web app is very simple, two servlets already installed so no war | file. Once it finally gets going it is very responsive, the | initialization just takes forever... A few quick questions: Do your servlets perform any

Re: How can I speed up and reduce load of initialization

2008-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavin, Er, forget my ravings about SSL initialization. I forgot that you said you were seeing very high CPU utilization. Waiting for randomness would not behave that way. - -chris Christopher Schultz wrote: | Gavan, | | Gavan Hood wrote: | | My

RE: How can I speed up and reduce load of initialization

2008-01-17 Thread Jonadan
Normally compilers are the memory hogs! A few things you can do is that; 1. If you use JSP, convert to servlets to avoid initialization phase compiling. 2. If your JDk is JIT (Just in time) compiler enable, disable it. You may have a bit slow execution. But should have satisfactory speed. 3.

RE: How can I speed up and reduce load of initialization

2008-01-16 Thread Peter Crowther
From: Gavan Hood [mailto:[EMAIL PROTECTED] My problem is the initialization. When I start tomcat it takes about two minutes to complete initialization and pegs my little processor at times, often it keeps it around 80% untilized... Yeah, that's not good in an embedded device! 2 minutes

Re: How can I speed up and reduce load of initialization

2008-01-16 Thread Len Popp
On Jan 16, 2008 4:21 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Gavan Hood [mailto:[EMAIL PROTECTED] My problem is the initialization. When I start tomcat it takes about two minutes to complete initialization and pegs my little processor at times, often it keeps it around 80%

RE: How can I speed up and reduce load of initialization

2008-01-16 Thread Gavan Hood
My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very responsive, the initialization just takes forever... I have some war files coming, but I figure if I cannt get this basic initialization to work theres not much point.