Archive for March 2009
12
Want to cut your IT budget without cutting services? Switch to Linux
0 Comments | Posted by sam in Links, Linux
For obvious reasons everyone is looking to make cost savings at the moment, and for inspiration you can look to the French Gendarmerie, who have saved millions of Euros as part of a transition to Linux.
“A report published by the European Commission’s Open Source Observatory provides some details from a recent presentation given by Gendarmerie Lieutenant-Colonel Xavier Guimard, who says that the Gendarmerie has been able to reduced its annual IT budget by 70 percent without having to reduce its capabilities.”
Read the full story over at Ars Technica.
After spending far too much time investigating a particularly thorny problem with a Java app, here’s a brief guide for anyone else stuck in the same predicament.
First, find some general information on the environment:
Show the JVM system properties
jinfo [pid]
Show heap space usage
jmap -heap [pid]
Show object memory usage
jmap -histo [pid]
Next, find out some more specifics about what the app is actually doing:
Take a thread dump
pkill -3 java; sleep 5; pkill -3 java
We do the kill -3 twice to show if threads are stuck in a particular state – add more as required. The thread dump is written to stdout for the java process. This will be catalina.out for a Tomcat app, elsewhere for others, check the init script for clues.
Take a stack trace
jstack [pid]
For apps using JNI you can take a mixed-mode trace by doing
jstack -m [pid]
and piping the output through c++filt. On Solaris, c++filt can be obtained as part of Sun Studio Express
Hopefully by this point you should have enough data to at least give you some clues as to where the problems are occuring.

