Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there exist any linux OS logs, that could be useful for me while finding out what went wrong on software process level, what is/went wrong on the OS drivers level, especially regarding the network drivers, and so on.
The reason for this question is that I am running a Java application inside Tomcat, and there are some problems I experience from time to time, like JVM processes or threads hangs/freezes, JVM process abnormal terminations and others.
The command cat /proc/version returned following result:
Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
So I guess it is Red Hat system I am talking about (yes, this is remote third-party server with limited information and access right for me, but I can requested the needed logs).
They should be all in /var/log. If you don't have root privileges you cannot read their content on a Red Hat system. Anyway, as soon as an error comes out you can do a list of the files in /var/log sorted by time, so you can see which is the last modified log file and do a specific request to the administrator:
Code:
ls -lrt /var/log
form this command the file at the bottom of the list has the most recent modification time. If there is some error message, most likely it will be in it.
As stated you can look at '/var/log' to get logged messages. You can look at the kernel ring buffer with 'dmesg'. This can be very helpful while diagnosing problems.
I am not sure if a Java application inside Tomcat will provide enough information into the /var/log located log-files, at least not for proper debugging. You also have to consider that for lengthy operations (I don't know what your Java app is doing) time-outs can occur. Web servers, especially on mass-hosting installments, are likely to kill slave processes after some amount of time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.