To find process start date & time

Get the process pid using ‘ps’  and read off the timestamp in the corresponding subdirectory in /proc.

example :

# pgrep java
16949
# ls -ld /proc/16949
dr-xr-xr-x 5 root root 0 Mar  3 12:02 /proc/16949

OR more formatted like below 🙂

# ps -ef | grep java | grep ‘bootstrap.jar’ | awk ‘{print $2}’| tail -1 | xargs -i stat /proc/{} | grep Change: | awk -F’ ‘ ‘{split($3,a,”.”); print $2,a[1]}’

2009-03-03 12:02:25