Java Web application which stops to give response to the production environment after 2 to 4 days.

Description

I have a Java Web application which stops to give response to the production environment after some interval of time in which I have used Spring framework and hibernate,
the below properties file in my project but after the deployment of project in tomcat the application runs fine for 2 to 4 days in the production but it stops giving response for the request generated by the users and me have to reload the application from tomcat and it works fine for 1 to 2 days and these tasks are done, again and again, kindly give me some suggestion that how can I resolve these issues. I have not faced these issues when I was using JDBC because the application which is developed using JDBC is running fine from last 2 yrs.

Hibernate Properties
hibernate.show_sql=false
hibernate.hbm2ddl.auto=update

hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=100
hibernate.c3p0.timeout=3000
hibernate.c3p0.max_statements=50
hibernate.c3p0.idle_test_period=30000
hibernate.c3p0.acquire_increment=10

<beans:bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<beansroperty name="dataSource" ref="dataSource" />
<beansroperty name="hibernateProperties">
<beansrops>
<beansrop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect
</beansrop>
<beansrop key="hibernate.show_sql">${hibernate.show_sql}</beansrop>
<beansrop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</beansrop>

<beansrop key="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</beansrop>
<beansrop key="hibernate.c3p0.idle_test_period">${hibernate.c3p0.idle_test_period}</beansrop>
<beansrop key="hibernate.c3p0.acquire_increment">${hibernate.c3p0.acquire_increment}</beansrop>
<beansrop key="hibernate.c3p0.min_size">${hibernate.c3p0.min_size}</beansrop>
<beansrop key="hibernate.c3p0.max_size">${hibernate.c3p0.max_size}</beansrop>
<beansrop key="hibernate.c3p0.max_statements">${hibernate.c3p0.max_statements}</beansrop>
<beansrop key="hibernate.c3p0.timeout">${hibernate.c3p0.timeout}</beansrop>

</beansrops>
</beansroperty>

</beans:bean>

Environment

Os- centos7
Mysql7
Java,Spring 4.0.3,Hibernate 4.3.8

Assignee

Unassigned

Reporter

Milan Singh

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Feedback Requested

2019/04/30

Worked in

4.3.8

Feedback Requested By

Gail Badner

Components

Affects versions

Priority

Major
Configure