{"id":398,"date":"2024-01-14T10:37:15","date_gmt":"2024-01-14T10:37:15","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/02\/03\/if-a-linux-build-server-suddenly-starts-getting-slow-what-would-you-check\/"},"modified":"2024-01-14T19:56:56","modified_gmt":"2024-01-14T19:56:56","slug":"if-a-linux-build-server-suddenly-starts-getting-slow-what-would-you-check","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/if-a-linux-build-server-suddenly-starts-getting-slow-what-would-you-check\/","title":{"rendered":"Linux Tutorials: How to troubleshoot Linux Server?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">If a linux-build-server suddenly starts getting slow,&nbsp;I would divide my approach \/ troubleshooting into 3 section as follows;<\/h3>\n\n\n\n<h1 class=\"wp-block-heading\">System Level troubleshooting<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>RAM related issues<\/li>\n\n\n\n<li>Disk Space related Issues<\/li>\n\n\n\n<li>Disk I\/O read write issues<\/li>\n\n\n\n<li>Network Hardware issues<\/li>\n\n\n\n<li>Mount issues<\/li>\n\n\n\n<li>Too Many process running in the machine<\/li>\n\n\n\n<li>Permission Issues<\/li>\n\n\n\n<li>Ownership<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Application Level troubleshooting<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Application is not behaving properly. <\/strong>Hit to Application log file OR application server log file OR web server Log file and try to understand the issues.<\/li>\n\n\n\n<li><strong>zombie process issues<\/strong> \u2013 Find out if any as such process which is causing the system performance issues.<\/li>\n\n\n\n<li><strong>Application Log <\/strong>\u2013 depends on the application installed, this can be referred and make use of the experience with the project and troubleshoot.<\/li>\n\n\n\n<li><strong>Web Server Log<\/strong> \u2013 we can check http, tomcat log as well.<\/li>\n\n\n\n<li>Application Server Log \u2013 We can see jboss, weblogic logs to see if the application server response\/receive time is the issues for slowness.<\/li>\n\n\n\n<li>Memory Leak of any application \u2013 This is one of well known issues in lunux based server due to bad application coding. Many times this can be resolved either by fixing the code or rebooting. But many other solutions are there to apply.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Dependent Services troubleshooting<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SMTP Response time \u2013 SMTP server is not responding faster which is causing delay in response and queue up many processes.<\/li>\n\n\n\n<li>Network issues \u2013 There are many System performance issues is dependent on network or service which is depends on the network.<\/li>\n\n\n\n<li>Firewall related issues<\/li>\n\n\n\n<li>Antivirus related issues<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Understand Logs Level<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"446\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2024\/01\/image-118-1024x446.png\" alt=\"\" class=\"wp-image-42350\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2024\/01\/image-118-1024x446.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2024\/01\/image-118-300x131.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2024\/01\/image-118-768x334.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2024\/01\/image-118.png 1435w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Here are the common log levels, typically ordered from least to most severe:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Trace<\/strong>: The most detailed level, used for fine-grained informational events. It&#8217;s mainly used for debugging, providing insights into the behavior of the application, including detailed flow tracing.<\/li>\n\n\n\n<li><strong>Debug<\/strong>: Provides information that is useful for debugging. Debug logs contain more detailed information than higher levels and are usually turned off in a production environment.<\/li>\n\n\n\n<li><strong>Info<\/strong>: Informational messages that highlight the progress of the application at a high level. This level is typically used for regular operation information such as user logins, SQL logs, etc.<\/li>\n\n\n\n<li><strong>Warn<\/strong>: Indicates potentially harmful situations. These are not errors but could be hints or warnings of potential issues that should be investigated.<\/li>\n\n\n\n<li><strong>Error<\/strong>: Error events of considerable importance that will prevent normal program execution, but might still allow the application to continue running.<\/li>\n\n\n\n<li><strong>Fatal\/Critical<\/strong>: Very severe error events that will presumably lead the application to abort. These are critical problems, like data corruption or loss.<\/li>\n\n\n\n<li><strong>Off<\/strong>: No logs are recorded.<\/li>\n<\/ol>\n\n\n\n<p><strong>Some of the useful commands for troubleshooting are..<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">1. df \u2013k\n\n2. du \u2013sh\n\n3. top\n\n4. uptime\n\n5. ps \u2013eaf | grep\n\n6. vmstat\n\n7. ping\n\n8. tail \u2013f <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">logfile<\/span>&gt;<\/span>\n\n9. iostat\n\n10.free\n\n11.kill -9\n\n12.mount\n\n13.sar\n\n14.ifconfig eth0 | enable | disable\n\n15.traceroute\n\n16.netstat -r\n\n17.nslookup\n\n18.route<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>","protected":false},"excerpt":{"rendered":"<p>If a linux-build-server suddenly starts getting slow,&nbsp;I would divide my approach \/ troubleshooting into 3 section as follows; System Level troubleshooting Application Level troubleshooting Dependent Services troubleshooting Understand Logs Level Here are the common log levels, typically ordered from least to most severe: Some of the useful commands for troubleshooting are..<\/p>\n","protected":false},"author":1,"featured_media":3530,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4957],"tags":[91,1793,438,1122,545,460,1796,1799,1800,1798,1797,1792,593,1509,399,1794,1795,104],"class_list":["post-398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-build","tag-build-server","tag-check","tag-guide","tag-how","tag-linux","tag-linux-build-server-guide","tag-linux-build-server-issue","tag-linux-build-server-problem","tag-linux-build-server-troubleshooting","tag-linux-build-server-tutorial","tag-linux-build-server","tag-process","tag-resolve","tag-server","tag-slow","tag-troubleshoot","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":6,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":42363,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions\/42363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3530"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}