What you can do on a UNIX system is install strace. strace will show you all the system calls being executed by a process. You can attach strace to a running process and log output and then inspect which file Tomcat loaded (if you're lucky, there will be a SEGFAULT or some other problem). The mapping files be loaded over and over again, so you just need to find where they start to loop and the last mapping is the one that is causing the problem. To do that, you can find the first mapping file that is loaded and simply search in the log for the next occurrence. Scroll up and you'll find the culprit.
Step by step:
- Start Tomcat
- Press CTRL-Z to suspend Tomcat
- ps -ef | grep juli to find all instances of Tomcat; note down the PID (usually the first of two similar, adjacent numbers)
- Execute "bg 1" to resume execution of Tomcat
- Execute "strace -fF -p YOUR_PID_HERE &> strace.log" to trace Tomcat
That's it... good luck!
1 comment:
Interesting Article
Spring Hibernate Training Online | Hibernate Training in Chennai
Hibernate Training Online | Java Online Course
Post a Comment