This information includes:
Process state, environment, arguments and flags
Virtual memory status
psinfo is useful for providing a detailed view of the current state of an application when diagnosing issues or performance problems.
psinfo requires Linux kernel 2.6.0 or greater.
Download psinfo from here and compile and install it using following command:
# make install
psinfo can be run as an orindary user but certain features (environment, executable, current working directory and root directory) require root rights and are marked n/a in output otherwise.