We have hosted our java application in Linux server. We developed an java application using Spring Boot framework where we have used postgresql 9.5.15 as database. Java,tomcat and postgresql are installed in the linux server. We deployed our war file in the linux server. Initially the application runs fine and as time passes by the application gets slower. We checked the resources at that time and found out that some time cpu usage becomes high and other resources are normal. Also sometime outgoing traffic exceed 8 Mbps . The form load and other process get slower. Once the tomcat is restarted, then everything comes to normal. Application again becomes faster. We are unable to find out the problem. Is there any tomcat setting that can make our application run faster. Cpu usage graph is shown below:.
Related
I am using tomcat for my web application. I am starting server from services. I have this configuration:
-Xms256m;-Xmx512m;-XX:PermSize=256m;-XX:MaxPermSize=512M
When I change this configuration and restart service and check in task manager, how much memory it is using, it is showing that it is using the same memory every time.
Note: I am using tomcat 8 on 64 bit windows machine.
I'm trying to allow a web application running on Linux Ubuntu 10.04.4 and WildFly 9 to access files on a windows share using the JCIFS library ( https://jcifs.samba.org/ ). When testing Samba connections in isolation from the rest of our web application and not using WildFly everything seems to work ok.
The issue is if the connection fails when connecting from the WildFly container - the wildfly processing jumps to 100% CPU, and stays there. As of now this is 12 hours # 100% CPU on our test system - so it's not timing out, if indeed something should be.
Using JCIFS in isolation from our webapp and Wildfly the protocol, authentication and file not found exceptions are caught and logged and it does not cause the java process to consume loads of CPU like the other scenario.
If anyone has any advise regarding their own experience or approaches to troubleshooting I could take I would be very grateful.
Deployed WildFly Websocket application OPENSHIFT . Everything was going good . But Sometime Websocket is not working properly. Then again Everytime i am logging in Openshift Site and Restarting the application. After that it's working fine. After sometime again websocket is not working . Please help me to solve this. How to keep the application always live in OPENSHIFT ??
You might try checking for Memory Limit Violations (https://help.openshift.com/hc/en-us/articles/202399600-How-to-check-for-memory-limit-violations). If you are using small gears you might be running out of memory, your application may require a medium or large gear to work properly. Especially if you are running WildFly + a database on the same gear. Also keep in mind that the JVM is allocated 1/2 of the available gear memory by default, you can read more about that here (https://developers.openshift.com/en/wildfly-jvm-memory.html)
Currently I'm supporting a web application project where every time there's a production deployment, we have to restart the Application Server. I ask my colleague why and he said, deployment takes a lot of memory therefore restart is to avoid outOfMemory and PermGen error. I also found out that JBoss AS, we also doing the same - have to restart after deployment. In Tomcat, we stop the app server then do the deployment and then restart the app server.
Is it by standard Webpshere and JBoss or any other Java Application Server have to restart after deployment?
Thank you.
No, this is by no way a standard. A redeployment may mean some time offline when the old code is taken offline and updated, but having to restart the complete server is normally no must.
I run a Java EE application on openshift with a Tomcat 7 server, and using neo4j in embedded mode for the persistance layer. I am using the openshift free plan for now. Every now and then, the application stops, and i get a 503 error. I suspect they pause the gear if the application is inactive for some time, but the application never restarts properly.
I have logged in using ssh and inspected the logs in Tomcat, but found no errors. I suspect that neo4j does not get to call shutdown, but i guess it should still recover.
Any ideas? What should i inspect?
It the application isn't receiving any external requests for 48 hours it will then get idled. However the application will automatically be restarted once an external request is made. Also since you're using java and your database on small gear, check to make sure you aren't hitting any memory limits (https://www.openshift.com/kb/kb-e1082-how-to-check-for-memory-limit-violations).