You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jitesh sharma <ji...@gmail.com> on 2008/04/29 07:30:49 UTC

Tomcat takes 2 hours to start

Hi all,

I have successfully installed Tomcat 5.5.27 over my Solaris system with  x86
architecture.
but when i tried to start tomcat it takes almost 2 hours to start.

when i start the server in normal mode with command
" /opt/tomcat/in/catalina.sh  run"
it starts in almost 2 hours.

but with debug mode the server starts in reasonable time and runs fine.

I have only one web application deployed on it except the default
applications shipped with
tomcat server.

does anyone knows what is wrong.

Thanks.
-- 
View this message in context: http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p16953495.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Tomcat takes 2 hours to start

Posted by Jim Cox <sh...@gmail.com>.
On Tue, Apr 29, 2008 at 7:16 AM, jitesh sharma <ji...@gmail.com>
wrote:

>
> without my web application it does not takes more then 5-6 seconds.
>
> Peter Crowther wrote:
> >
> >> From: jitesh sharma [mailto:jiteshdevelopment@gmail.com]
> >> I have successfully installed Tomcat 5.5.27 over my Solaris
> >> system with  x86 architecture.
> >> but when i tried to start tomcat it takes almost 2 hours to start.
> >>
> >> when i start the server in normal mode with command
> >> " /opt/tomcat/in/catalina.sh  run"
> >> it starts in almost 2 hours.
> >>
> >> but with debug mode the server starts in reasonable time and
> >> runs fine.
> >>
> >> I have only one web application deployed on it except the default
> >> applications shipped with tomcat server.
> >
> > How long does Tomcat take to start *without* your webapp?
> >
>

Try starting it via truss, it might give you a good idea if/where it is
hanging (e.g. on a series of DNS lookups that are timing out?).

RE: Tomcat takes 2 hours to start

Posted by jitesh sharma <ji...@gmail.com>.
without my web application it does not takes more then 5-6 seconds.

Peter Crowther wrote:
> 
>> From: jitesh sharma [mailto:jiteshdevelopment@gmail.com]
>> I have successfully installed Tomcat 5.5.27 over my Solaris
>> system with  x86 architecture.
>> but when i tried to start tomcat it takes almost 2 hours to start.
>>
>> when i start the server in normal mode with command
>> " /opt/tomcat/in/catalina.sh  run"
>> it starts in almost 2 hours.
>>
>> but with debug mode the server starts in reasonable time and
>> runs fine.
>>
>> I have only one web application deployed on it except the default
>> applications shipped with tomcat server.
> 
> How long does Tomcat take to start *without* your webapp?
> 
>                 - Peter
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p16958209.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Tomcat takes 2 hours to start

Posted by Peter Crowther <Pe...@melandra.com>.
> From: jitesh sharma [mailto:jiteshdevelopment@gmail.com]
> I have successfully installed Tomcat 5.5.27 over my Solaris
> system with  x86 architecture.
> but when i tried to start tomcat it takes almost 2 hours to start.
>
> when i start the server in normal mode with command
> " /opt/tomcat/in/catalina.sh  run"
> it starts in almost 2 hours.
>
> but with debug mode the server starts in reasonable time and
> runs fine.
>
> I have only one web application deployed on it except the default
> applications shipped with tomcat server.

How long does Tomcat take to start *without* your webapp?

                - Peter

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


Re: Tomcat takes 2 hours to start

Posted by jitesh sharma <ji...@gmail.com>.
hi all,

first of all sorry bcoz i am busy with my presentation work so i can not
reply regularly.
secondly sorry again bocz the log info which i have posted is generated
using :

# /opt/tomcat/bin/catalina.sh debug

that is why its showing 2 minutes server startup time.
and as i mentioned earlier that tomcat runs fine in debug mode.

the actual output using :
# /opt/tomcat/bin/catalina.sh run   
--------------------------------------------------------------------------------------
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:       /usr/jdk/jdk1.5.0_07
May 7, 2008 10:33:49 AM org.apache.catalina.core.AprLifecycleListener
lifecycleE vent
INFO: The Apache Tomcat Native library which allows optimal performance in
produ ction environments was not found on the java.library.path:
/usr/jdk/instances/jd
k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
tances/jdk1.5.0/jre/../lib/i386:/usr/lib
May 7, 2008 10:33:49 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 7, 2008 10:33:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1664 ms
May 7, 2008 10:33:49 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 7, 2008 10:33:49 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
May 7, 2008 10:33:50 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 7, 2008 10:33:58 AM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
May 7, 2008 10:33:58 AM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /etc/.java/.systemPrefs/prefs.xml
------------------------------------------------------------------------------------------------------------------
here it takes stops for a long time and then displays next log
--------------------------------------------------------------------------------------------------------------
May 7, 2008 1:03:42 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 7, 2008 1:03:43 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 7, 2008 1:03:43 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/98  config=null
May 7, 2008 1:03:43 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 7, 2008 1:03:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8993857 ms


With Thanks,
jitesh 
 

shakahshakah@gmail.com wrote:
> 
> 
> FWIW, your log excerpt shows a 2-minute delay, not a 2-hour delay as your
> originally reported.
> 
> In any case, re your question on starting via "truss", it should be as
> simple as the following:
>   truss /opt/tomcat/in/catalina.sh run
> 
> (though I assume you really meant "/opt/tomcat/*b*in/catalina.sh run")
> 
> If you tail the Tomcat log and then start tomcat via truss (as shown
> above)
> you'll hopefully see something valuable in the truss output when you see
> the
> pause in the Tomcat logging.
> 
> 
> On Wed, Apr 30, 2008 at 2:44 AM, jitesh sharma
> <ji...@gmail.com>
> wrote:
> 
>>
>> hello,
>>
>> Tomcat logs when it starts :
>>
>> Apr 30, 2008 12:08:32 PM org.apache.catalina.core.AprLifecycleListen er
>> lifecycleEvent
>> INFO: The Apache Tomcat Native library which allows optimal performance
>> in
>> produ ction environments was not found on the java.library.path:
>> /usr/jdk/instances/jd
>>
>> k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
>> tances/jdk1.5.0/jre/../lib/i386:/usr/lib
>> Apr 30, 2008 12:08:33 PM org.apache.coyote.http11.Http11BaseProtocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> Apr 30, 2008 12:08:33 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 3929 ms
>> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
>> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
>> WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
>> Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
>> WARNING: Prefs file removed in background
>> /etc/.java/.systemPrefs/prefs.xml
>>
>> -------------------------------------------------------------------------------
>> After this output it goes for a long break  and then print
>>
>> -------------------------------------------------------------------------------
>>
>> Apr 30, 2008 12:10:38 PM org.apache.coyote.http11.Http11BaseProtocol
>> start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> Apr 30, 2008 12:10:39 PM org.apache.jk.common.ChannelSocket init
>> INFO: JK: ajp13 listening on /0.0.0.0:8009
>> Apr 30, 2008 12:10:39 PM org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/59  config=null
>> Apr 30, 2008 12:10:39 PM org.apache.catalina.storeconfig.StoreLoader load
>> INFO: Find registry server-registry.xml at classpath resource
>> Apr 30, 2008 12:10:39 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 125914 ms
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p17101749.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Tomcat takes 2 hours to start

Posted by Jim Cox <sh...@gmail.com>.
>> >> when i start the server in normal mode with command
>> >> " /opt/tomcat/in/catalina.sh  run"
>> >> it starts in almost 2 hours.

FWIW, your log excerpt shows a 2-minute delay, not a 2-hour delay as your
originally reported.

In any case, re your question on starting via "truss", it should be as
simple as the following:
  truss /opt/tomcat/in/catalina.sh run

(though I assume you really meant "/opt/tomcat/*b*in/catalina.sh run")

If you tail the Tomcat log and then start tomcat via truss (as shown above)
you'll hopefully see something valuable in the truss output when you see the
pause in the Tomcat logging.


On Wed, Apr 30, 2008 at 2:44 AM, jitesh sharma <ji...@gmail.com>
wrote:

>
> hello,
>
> Tomcat logs when it starts :
>
> Apr 30, 2008 12:08:32 PM org.apache.catalina.core.AprLifecycleListen er
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in
> produ ction environments was not found on the java.library.path:
> /usr/jdk/instances/jd
>
> k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
> tances/jdk1.5.0/jre/../lib/i386:/usr/lib
> Apr 30, 2008 12:08:33 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Apr 30, 2008 12:08:33 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 3929 ms
> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
> Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
> WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
> Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
> WARNING: Prefs file removed in background
> /etc/.java/.systemPrefs/prefs.xml
>
> -------------------------------------------------------------------------------
> After this output it goes for a long break  and then print
>
> -------------------------------------------------------------------------------
>
> Apr 30, 2008 12:10:38 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Apr 30, 2008 12:10:39 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Apr 30, 2008 12:10:39 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/59  config=null
> Apr 30, 2008 12:10:39 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Apr 30, 2008 12:10:39 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 125914 ms
>
>
> Thanks
> jitesh
>
>
> mgainty wrote:
> >
> > It seems you are perhaps using different startup parameters?
> > We could provide a more comprehensive answer if you display Tomcat log
> > for the startup configuration experiencing the long delay
> >
> > Thanks
> > Martin--
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p16976673.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat takes 2 hours to start

Posted by jitesh sharma <ji...@gmail.com>.
hello,

Tomcat logs when it starts :

Apr 30, 2008 12:08:32 PM org.apache.catalina.core.AprLifecycleListen er
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
produ ction environments was not found on the java.library.path:
/usr/jdk/instances/jd
k1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/ins
tances/jdk1.5.0/jre/../lib/i386:/usr/lib
Apr 30, 2008 12:08:33 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 30, 2008 12:08:33 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3929 ms
Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Apr 30, 2008 12:08:34 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /.java/.userPrefs/prefs.xml
Apr 30, 2008 12:08:54 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /etc/.java/.systemPrefs/prefs.xml
-------------------------------------------------------------------------------
After this output it goes for a long break  and then print
-------------------------------------------------------------------------------

Apr 30, 2008 12:10:38 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 30, 2008 12:10:39 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 30, 2008 12:10:39 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/59  config=null
Apr 30, 2008 12:10:39 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 30, 2008 12:10:39 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 125914 ms


Thanks
jitesh


mgainty wrote:
> 
> It seems you are perhaps using different startup parameters?
> We could provide a more comprehensive answer if you display Tomcat log
> for the startup configuration experiencing the long delay
> 
> Thanks
> Martin--
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p16976673.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Tomcat takes 2 hours to start

Posted by Martin Gainty <mg...@hotmail.com>.
It seems you are perhaps using different startup parameters?
We could provide a more comprehensive answer if you display Tomcat log
for the startup configuration experiencing the long delay

Thanks
Martin--

----- Original Message ----- 
From: "jitesh sharma" <ji...@gmail.com>
To: <us...@tomcat.apache.org>
Sent: Tuesday, April 29, 2008 1:30 AM
Subject: Tomcat takes 2 hours to start


>
> Hi all,
>
> I have successfully installed Tomcat 5.5.27 over my Solaris system with 
> x86
> architecture.
> but when i tried to start tomcat it takes almost 2 hours to start.
>
> when i start the server in normal mode with command
> " /opt/tomcat/in/catalina.sh  run"
> it starts in almost 2 hours.
>
> but with debug mode the server starts in reasonable time and runs fine.
>
> I have only one web application deployed on it except the default
> applications shipped with
> tomcat server.
>
> does anyone knows what is wrong.
>
> Thanks.
> -- 
> View this message in context: 
> http://www.nabble.com/Tomcat-takes-2-hours-to-start-tp16953495p16953495.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


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