tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Fwd: Tomcat Thread Log
Date Thu, 09 Apr 2015 12:59:16 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mukund,

On 4/8/15 11:33 PM, Mukundaraman Valakumaresan wrote:
> I have deployed an application in Apache tomcat 7.0.59.
> 
> When I copy the war to webapps folder and start tomcat. Tomcat
> hangs and I coudln't see the admin screen as well for the first 30
> minutes. Without this war, tomcat starts fine shows the admin
> screen immediately.
> 
> Through google, I check a posts, which asked me to take a thread
> dump. I use Sprint, Hibernate and Mysql. From the thread dump, I
> could see that and could also see that the problem with the
> connectivity to MySQL.
> 
> But I am not sure where exactly the problem lies and what needs to
> be fixed. Any help is appreciated!! Thanks
> 
> 
> 
> "http-bio-8080-exec-1" daemon prio=10 tid=0x00007fa11400c800
> nid=0xa49 runnable [0x00007fa124c87000] java.lang.Thread.State:
> RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) 
> at java.net.SocketInputStream.read(SocketInputStream.java:152) at
> java.net.SocketInputStream.read(SocketInputStream.java:122) at 
> com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.jav
a:113)
>
> 
at
> com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNec
essary(ReadAheadInputStream.java:160)
>
> 
at
> com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.jav
a:188)
>
> 
- - locked <0x00000000baadb0d0> (a com.mysql.jdbc.util.ReadAheadInputStrea
m)
> at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2428) at
> com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2882) at
> com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2871) at
> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3414) at
> com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936) at
> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060) at
> com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536) -
> locked <0x00000000cfa6a1f8> (a java.lang.Object) at
> com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465) at
> com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383) 
> - locked <0x00000000cfa6a1f8> (a java.lang.Object) at 
> com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.jav
a:823)
>
> 
at
> com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl
.java:3350)
>
> 
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2045)
> - locked <0x00000000cfa6a1f8> (a java.lang.Object) at
> com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718) at
> com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo
rAccessorImpl.java:57)
>
> 
at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo
nstructorAccessorImpl.java:45)
>
> 
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at
> com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) 
> at 
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
282)
>
> 
at java.sql.DriverManager.getConnection(DriverManager.java:571)
> at java.sql.DriverManager.getConnection(DriverManager.java:187) at 
> org.springframework.jdbc.datasource.DriverManagerDataSource.getConnect
ionFromDriverManager(DriverManagerDataSource.java:173)
>
> 
at
> org.springframework.jdbc.datasource.DriverManagerDataSource.getConnect
ionFromDriver(DriverManagerDataSource.java:164)
>
> 
at
> org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getC
onnectionFromDriver(AbstractDriverBasedDataSource.java:153)
>
> 
at
> org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getC
onnection(AbstractDriverBasedDataSource.java:119)
>
> 
at
> org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionPro
viderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)
>
> 
at
> org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProvider
JdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:279)
>
> 
at
> org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServ
icesImpl.java:124)
>
> 
at
> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.confi
gureService(StandardServiceRegistryImpl.java:111)
>
> 
at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeS
ervice(AbstractServiceRegistryImpl.java:234)
>
> 
at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(
AbstractServiceRegistryImpl.java:206)
>
> 
at
> org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.j
ava:1885)
>
> 
at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
:1843)
>
> 
at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
:1928)
>
> 
at
> org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSes
sionFactory(LocalSessionFactoryBuilder.java:252)
>
> 
at
> org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessio
nFactory(LocalSessionFactoryBean.java:377)
>
> 
at
> org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterProper
tiesSet(LocalSessionFactoryBean.java:362)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.createBean(AbstractAutowireCapableBeanFactory.java:458)
>
> 
at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObj
ect(AbstractBeanFactory.java:296)
>
> 
at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
.getSingleton(DefaultSingletonBeanRegistry.java:223)
>
> 
- - locked <0x00000000cf74c6d8> (a java.util.concurrent.ConcurrentHashMap)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBea
n(AbstractBeanFactory.java:293)
>
> 
at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:198)
>
> 
at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.g
etBeansOfType(DefaultListableBeanFactory.java:438)
>
> 
at
> org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludin
gAncestors(BeanFactoryUtils.java:277)
>
> 
at
> org.springframework.dao.support.PersistenceExceptionTranslationInterce
ptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslati
onInterceptor.java:139)
>
> 
at
> org.springframework.dao.support.PersistenceExceptionTranslationInterce
ptor.<init>(PersistenceExceptionTranslationInterceptor.java:79)
>
> 
at
> org.springframework.dao.annotation.PersistenceExceptionTranslationAdvi
sor.<init>(PersistenceExceptionTranslationAdvisor.java:71)
>
> 
at
> org.springframework.dao.annotation.PersistenceExceptionTranslationPost
Processor.setBeanFactory(PersistenceExceptionTranslationPostProcessor.ja
va:84)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1532)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.initializeBean(AbstractAutowireCapableBeanFactory.java:1500)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
>
> 
at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.createBean(AbstractAutowireCapableBeanFactory.java:458)
>
> 
at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObj
ect(AbstractBeanFactory.java:296)
>
> 
at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
.getSingleton(DefaultSingletonBeanRegistry.java:223)
>
> 
- - locked <0x00000000cf74c6d8> (a java.util.concurrent.ConcurrentHashMap)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBea
n(AbstractBeanFactory.java:293)
>
> 
at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:198)
>
> 
at
> org.springframework.context.support.AbstractApplicationContext.registe
rBeanPostProcessors(AbstractApplicationContext.java:741)
>
> 
at
> org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:464)
>
> 
- - locked <0x00000000cf74c778> (a java.lang.Object)
> at 
> org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWe
bApplicationContext(FrameworkServlet.java:651)
>
> 
at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationC
ontext(FrameworkServlet.java:602)
>
> 
at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationC
ontext(FrameworkServlet.java:665)
>
> 
at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationCon
text(FrameworkServlet.java:521)
>
> 
at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(Frame
workServlet.java:462)
>
> 
at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.j
ava:136)
>
> 
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
> at 
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.j
ava:1284)


Your
> 
web application is stalling on startup because of something one
of your servlets is causing to happen.

It looks like Spring is loading a whole lot of stuff from your
database (or your database itself is stalling).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVJnekAAoJEBzwKT+lPKRYUpQP/2cs0BAfyVLOX5iavgz6zuiY
Tnkk1duPLRPxAvIlkc2vlDWCMBUvM1qfxXXbsEmcnGtXxB4QH7H+CrPMunwfQ8Wp
RXHCb9439KRXD6LHQXvCdgGIF9J9iC53EP1HYoB5Qn2NWqVVEkPhAtpW/A9TchhL
FHuihPgkJmfJmwLNAFuDpez+rLQkgM7ma5yKcIOdeibtJK53zCSunMMMdya5SC8Q
zoBsdeQg/NRGkAhAi0an18VM8TPkR2U/5qYuSTcsRrqR2dn/g+pf1nXaKVDfvc/E
pWZV8yh9MWoyawftFrGGq76Hqn/p35D0N82mt4hMUpiLbNU8hjmnpJuP3dAqKVwO
h0I5qfkWs+GMJwoRwWZQq4S/fm/LGmkC4HGJfl0AEejOeYOJYwzVMYKjOUhV3fNf
lMZnmEvUo0G3O/DSXA11wC0GPNtNNeguaRdwi+pio9K8/I2+VJAMgSD5zOGSvhWu
e7pQSHdds8cspi0UhKh3VEp3br5AqbSNX/K/vEAdRBg0B/VklAhaL4l019RYBh5g
fhIeruG2uCYBQrs5TX+dpDe9Ga1Brxqj9tjyi4kaeOpEovZKdqp96M4xG/bO7MzG
35aKDofSAcHViUHM5DSCtAoHln99/HaWK4qMq13iMk/jogAJ1TQ9T+TS33HbcZeY
l68P0GmACBilfgv3AYPO
=9nVo
-----END PGP SIGNATURE-----

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


Mime
View raw message