Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Tomcat server going to hung state on every 1 week.It does not respond to application requests.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Hope all you are well.

My application has been moved to production,it is available in world wide.The problem is,on every week Tomcat server is going to the hung state,during the issue application is not accessible and tomcat still shows running state.If we restart the Tomcat,application will be available to the users immediately.The user authentication would be done in the Adfs server.
Before the issue, the application is accessible and we can not move to home page after authentication.Its showing, reloading the page.If i access other links in page during the issue,like reset password,user registration link all were accessile,after few minutes entire application was not accessible.
We have not found any suspected errors in catalina.out and adfs logs.Its happening frequently.

My environment details:
OS: CentOS Linux release 7.4.1708 (Core)
Tomcat:Apache-tomcat-8.5.15
RAM-12GB
Memeoy allocated for Tomcat- -Xms2048m -Xmx6144m -XX:MaxMetaspaceSize=1024m

Kindly Please help me with suggestions and permanent solution.


Regards,
Parvathi




 
Saloon Keeper
Posts: 21127
131
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is absolutely nothing in there that tells us anything. Tomcat doesn't hang. It has no history of hanging and it's been around a long time now. Webapps hang. Webapps hang when they're not designed for the conditions that are imposed on them. To be able to tell anything further, you'd need to collect information about what's going on inside the hung application.

About the only thing I can tell about your webapp from what you said is that you probably didn't use the JEE standard login/security system, so in addition to whatever normal webapp stresses you're encountering, you've got a very high probability that your server is being impacted by break-in attempts, assuming it's as famous as you claim.
 
Parvathiwls Jp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,Thank you for your immediate response.

Today again, Tomcat was not responding to the Application requests,immediately we have restarted the server.We found some suspected issue in logs,here i am sharing.Kindly look into this and help me on this.


07:47:08.033 WARN  .ui.jsp.tag.TagSupport - Problem causing error in the user interface!
javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: search.ParsingException: The value could not be matched to String, range, number, date: CommissionType
       at org.apache.jsp.WEB_002dINF.pages.catalogue_jsp._jspx_meth_search_005ftwigkit_005f0(catalogue_jsp.java:384) [ROOT/:na]
       at org.apache.jsp.WEB_002dINF.pages.catalogue_jsp._jspService(catalogue_jsp.java:299) [ROOT/:na]
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.5.15]
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) [jasper.jar:8.5.15]
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) [jasper.jar:8.5.15]
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) [jasper.jar:8.5.15]
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]
       at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) ~[na:na]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
       at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
       at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282) [catalina.jar:8.5.15]
       at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279) [catalina.jar:8.5.15]
       at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_131]
       at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) [na:1.8.0_131]
       at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314) [catalina.jar:8.5.15]
       at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170) [catalina.jar:8.5.15]
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:225) [catalina.jar:8.5.15]
       at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47) [catalina.jar:8.5.15]

Caused by: org.apache.jasper.el.JspELException: /WEB-INF/pages/catalogue.jsp(25,4) '${search:addFilterToQuery(query, search:createOptionalFilter('Status', 'WIPED', true, 'field'))}' Problems calling function [search:addFilterToQuery]
Caused by: search.ParsingException: The value could not be matched to String, range, number, date: ~Status(1)["PROD"]
Caused by: java.util.concurrent.ExecutionException: javax.persistence.PersistenceException: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.stat.spi.StatisticsImplementor]


Help me on this.



Thanks&Regards,
Parvathi



 
Tim Holloway
Saloon Keeper
Posts: 21127
131
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have committed an offence against The Bear. You have put program logic on a JSP, or so it seems.

More seriously, it isn't' just a JavaRanch joke about Bear's antipathy to doing that. Debugging code on a JSP is, in fact, a "bear" of a job. It's one of the reasons why he - and we - promote putting the code in a Controller servlet and leaving the JSP strictly as a View Template.

As for your actual problem it seems likely that you have a mismatch between Java data types and the data type defined in the database, but we still need more information.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!