{"id":2402,"date":"2022-08-30T15:24:34","date_gmt":"2022-08-30T15:24:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/centos-or-tomcat-restarting-how-to-monitor-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:34","modified_gmt":"2022-08-30T15:24:34","slug":"centos-or-tomcat-restarting-how-to-monitor-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/centos-or-tomcat-restarting-how-to-monitor-collection-of-common-programming-errors\/","title":{"rendered":"centos or tomcat restarting &#8211; how to monitor?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m a almost totally beginner to server administration.<\/p>\n<p>I recently got a VPS box on nixcom.ca to learn the stuff, installed nginx and tomcat. The issue is that almost after every one or two days of working, when I go to see my test websites, the tomcat server is down. The nginx site at :80 is ok, but the one at :8080 is down. I want to mention that the tomcat is not configured to start automatically after os start.<\/p>\n<p>There were some issues in the past with the Nix node my VPS is on, but I think they fixed that.<\/p>\n<p>So, my problem is that I don&#8217;t know if the whole box is being restarting (and ngix is just started up at boot, but not tomcat) or that tomcat is crashing. I looked in the logs from tomcat and I can see nothing about any errors\/crashes (there is virtually no trafic on that websites).<\/p>\n<p>If I go to the VPS Control Center on Nix -&gt; logs, I can see only reboots and reinstalls that I did, not any crash.<\/p>\n<p>How can I monitor \/ see in the logs what happened?<\/p>\n<p>My setup: Debian 5 XEN 32Bit 512mb RAM Nginx Tomcat 6 installed manually jre1.6.0_21 &#8211; installed manually JAVA_OPTS=&#8221;-Xms400m -Xmx400m -XX:PermSize=128m -XX:MaxPermSize=256m&#8221; CATALINA_OPTS=-Xms400m -Xmx400m -XXPermSize=128m -XX:MaxPermSize=256m&#8221; I have a small Grails application hosted.<\/p>\n<p>There is no mail or database software installed. (Using Grails with the in memory hsqldb db)<\/p>\n<ol>\n<li>\n<p>To start with, I would use uptime to definitively determine if the host is being rebooted or not. Your range of potential problems will be a fraction once you find this out.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:46:10. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a almost totally beginner to server administration. I recently got a VPS box on nixcom.ca to learn the stuff, installed nginx and tomcat. The issue is that almost after every one or two days of working, when I go to see my test websites, the tomcat server is down. The nginx site at :80 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2402","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2402"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2402\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}