Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-27 Thread G Kontos
Hi Gabe, Thanks for the reply.  The application does live on a VPS -
Virtuozzo VPS.  The server has a total of 432 MB of memory, 90MB initial
Heap size for tomcat, 180MB max heap size.  The numbers for actual CPU speed
or my piece of that speed aren't published, but my current usage of the CPU
has been between 2% and 18% this morning.

In reference to disk io - We use the same VPS at work, and the applications
deploy much faster.  Outside of my anecdotal support of the VPS, I don't
know how I would get hard numbers for the disk io.  Of course, at work we
use way more memory.

Do you think I cut the resources a little too thin?

Thanks again.  - Greg


Re: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greg,

G Kontos wrote:
 The application does live on a VPS - Virtuozzo VPS.

My mail server runs on a VPS and it's /horrible/. I'm very unhappy. It
appears to lock up all the time and cause all kinds of problems when
using IMAP. I'm not sure about how Java would perform under these
conditions, but I couldn't recommend that anyone use VPS for anything
mission critical.

I have not had first-hand experience with other virtualization products
except for VMWare's workstation and player (host/guest setup) so I can't
tell whether this is a problem specifically with Virtuozzo or would be a
problem with any virtualized environment.

 In reference to disk io - We use the same VPS at work, and the applications
 deploy much faster.  Outside of my anecdotal support of the VPS, I don't
 know how I would get hard numbers for the disk io.  Of course, at work we
 use way more memory.

I wonder if you're getting a much smaller slice of the disk I/O in your
non-work setup. My experience is that they package the memory and CPU
percentages and sell those to you, but don't generally talk about the
disk I/O. Perhaps you could talk to your provider about increasing your
disk I/O share (if there is such a thing).

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

iEYEARECAAYFAkjeWYAACgkQ9CaO5/Lv0PA3yQCeOfXUSyP45o8I3kgESSDhTh3e
r5YAnjxWvkUAGqEDjVoKRIp70CLA+gzH
=fLWF
-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]



Re: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-27 Thread Gabe Wong
Sure sounds like it. Exactly what your are lacking may be listed in the 
last column of the following command

cat /proc/user_beancounters
You may also want to ask your provider Say how many other accounts are 
sharing the server with me?


G Kontos wrote:

Hi Gabe, Thanks for the reply.  The application does live on a VPS -
Virtuozzo VPS.  The server has a total of 432 MB of memory, 90MB initial
Heap size for tomcat, 180MB max heap size.  The numbers for actual CPU speed
or my piece of that speed aren't published, but my current usage of the CPU
has been between 2% and 18% this morning.

In reference to disk io - We use the same VPS at work, and the applications
deploy much faster.  Outside of my anecdotal support of the VPS, I don't
know how I would get hard numbers for the disk io.  Of course, at work we
use way more memory.

Do you think I cut the resources a little too thin?

Thanks again.  - Greg

  



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


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



Re: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-27 Thread Jq


 I have not had first-hand experience with other virtualization products
 except for VMWare's workstation and player (host/guest setup) so I can't
 tell whether this is a problem specifically with Virtuozzo or would be a
 problem with any virtualized environment.
 

VMWare products are solid. We use ESX for mission critical applications.
Between two HP DL385's we have 2 Win2K3 servers running domino and IIS,
we also have 8 linux machines running tomcat and cron jobs. All of these
are up 100% of the time without any trouble.



RE: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-27 Thread Caldarale, Charles R
G Kontos wrote:
 The server has a total of 432 MB of memory, 90MB initial
 Heap size for tomcat, 180MB max heap size.

In this day and age, that's bordering on tiny.  Besides the likely I/O problem, 
you may be doing a lot of garbage collections.  You certainly want -Xms the 
same as -Xmx with such a small space.  Try running JConsole against your server 
to look at GC data (or enable the -verbose:gc option).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-26 Thread G Kontos
I'm wondering why I'm seeing such a long deployment time with my project.  4
to 7 minutes is way longer than I am used to seeing with projects of similar
or larger size.  My war file is about 15M - and it lives on a red hat
server.  I'm at a loss about what I could be doing wrong.  I'm even at a
loss to figure out what I could be doing different than normal.  I'm just
putting a war into the webapps folder and restarting tomcat.  The output
looks pretty harmless - it just takes forever.

Any ideas how I can get my deployment to take less time?



STATUS | wrapper  | 2008/09/26 00:06:02 | -- Wrapper Started as Daemon
STATUS | wrapper  | 2008/09/26 00:06:03 | Launching a JVM...
INFO   | jvm 1| 2008/09/26 00:06:05 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO   | jvm 1| 2008/09/26 00:06:05 |   Copyright 1999-2006 Tanuki
Software, Inc.  All Rights Reserved.
INFO   | jvm 1| 2008/09/26 00:06:05 |
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: The Apache Tomcat Native
library which allows optimal performance in production environments was not
found on the java.library.path: /opt/tomcat5/common/lib
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.coyote.http11.Http11BaseProtocol init
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: Initializing Coyote HTTP/1.1
on http-8080
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.catalina.startup.Catalina load
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: Initialization processed in
2120 ms
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardService start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: Starting service Catalina
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardEngine start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: Starting Servlet Engine:
Apache Tomcat/5.5.26
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardHost start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: XML validation disabled
INFO   | jvm 1| 2008/09/26 00:06:18 | Sep 26, 2008 4:06:18 AM
org.apache.catalina.startup.HostConfig deployWAR
INFO   | jvm 1| 2008/09/26 00:06:18 | INFO: Deploying web application
archive a1.war
INFO   | jvm 1| 2008/09/26 00:13:33 | Initialize-init()-start::Nine
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO:
org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO: ContextListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO: SessionListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:38 | Sep 26, 2008 4:13:38 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:38 | INFO: ContextListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:38 | Sep 26, 2008 4:13:38 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:38 | INFO: SessionListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:41 | Sep 26, 2008 4:13:41 AM
org.apache.coyote.http11.Http11BaseProtocol start
INFO   | jvm 1| 2008/09/26 00:13:41 | INFO: Starting Coyote HTTP/1.1 on
http-8080
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.jk.common.ChannelSocket init
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: JK: ajp13 listening on /
0.0.0.0:8009
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.jk.server.JkMain start
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: Jk running ID=0 time=0/244
config=null
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.catalina.storeconfig.StoreLoader load
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: Find registry
server-registry.xml at classpath resource
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.catalina.startup.Catalina start
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: Server startup in 453702 ms


Thanks for your help.


Re: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-26 Thread Gabe Wong

Hi G,

First what is the available memory (RAM) and CPU on your system?
Are you on a VPS or Private JVM in a Hosted environment.
Quite possible it is simply a matter or resources or lack of.
If on VPS, certain ones have a tendency to be slow on disk IO.

G Kontos wrote:

I'm wondering why I'm seeing such a long deployment time with my project.  4
to 7 minutes is way longer than I am used to seeing with projects of similar
or larger size.  My war file is about 15M - and it lives on a red hat
server.  I'm at a loss about what I could be doing wrong.  I'm even at a
loss to figure out what I could be doing different than normal.  I'm just
putting a war into the webapps folder and restarting tomcat.  The output
looks pretty harmless - it just takes forever.

Any ideas how I can get my deployment to take less time?



STATUS | wrapper  | 2008/09/26 00:06:02 | -- Wrapper Started as Daemon
STATUS | wrapper  | 2008/09/26 00:06:03 | Launching a JVM...
INFO   | jvm 1| 2008/09/26 00:06:05 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO   | jvm 1| 2008/09/26 00:06:05 |   Copyright 1999-2006 Tanuki
Software, Inc.  All Rights Reserved.
INFO   | jvm 1| 2008/09/26 00:06:05 |
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: The Apache Tomcat Native
library which allows optimal performance in production environments was not
found on the java.library.path: /opt/tomcat5/common/lib
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.coyote.http11.Http11BaseProtocol init
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: Initializing Coyote HTTP/1.1
on http-8080
INFO   | jvm 1| 2008/09/26 00:06:08 | Sep 26, 2008 4:06:08 AM
org.apache.catalina.startup.Catalina load
INFO   | jvm 1| 2008/09/26 00:06:08 | INFO: Initialization processed in
2120 ms
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardService start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: Starting service Catalina
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardEngine start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: Starting Servlet Engine:
Apache Tomcat/5.5.26
INFO   | jvm 1| 2008/09/26 00:06:09 | Sep 26, 2008 4:06:09 AM
org.apache.catalina.core.StandardHost start
INFO   | jvm 1| 2008/09/26 00:06:09 | INFO: XML validation disabled
INFO   | jvm 1| 2008/09/26 00:06:18 | Sep 26, 2008 4:06:18 AM
org.apache.catalina.startup.HostConfig deployWAR
INFO   | jvm 1| 2008/09/26 00:06:18 | INFO: Deploying web application
archive a1.war
INFO   | jvm 1| 2008/09/26 00:13:33 | Initialize-init()-start::Nine
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO:
org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO: ContextListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:37 | Sep 26, 2008 4:13:37 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:37 | INFO: SessionListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:38 | Sep 26, 2008 4:13:38 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:38 | INFO: ContextListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:38 | Sep 26, 2008 4:13:38 AM
org.apache.catalina.core.ApplicationContext log
INFO   | jvm 1| 2008/09/26 00:13:38 | INFO: SessionListener:
contextInitialized()
INFO   | jvm 1| 2008/09/26 00:13:41 | Sep 26, 2008 4:13:41 AM
org.apache.coyote.http11.Http11BaseProtocol start
INFO   | jvm 1| 2008/09/26 00:13:41 | INFO: Starting Coyote HTTP/1.1 on
http-8080
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.jk.common.ChannelSocket init
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: JK: ajp13 listening on /
0.0.0.0:8009
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.jk.server.JkMain start
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: Jk running ID=0 time=0/244
config=null
INFO   | jvm 1| 2008/09/26 00:13:42 | Sep 26, 2008 4:13:42 AM
org.apache.catalina.storeconfig.StoreLoader load
INFO   | jvm 1| 2008/09/26 00:13:42 | INFO: Find registry
server-registry.xml at