Needs heap-memory, non-heap memory, thread count etc values for tomcat in linux

view story

http://stackoverflow.com – We are planning to write scripts to fetch the values of Heap memory, non-heap memory, thread count etc, of tomcat from command line ( in linux). I have explored and found that we can use JMX via Jconsole. But i didn't really like that idea. I would like to know other ways on how we can fetch these details directly from that local server via commands. (HowTos)