Lesson 1: working with cluster

(1) Build a java.opts file under the matlab start directory which can be found in matlab console using pwd command
the file just contains one line
-Xmx40g
(2)
try to search the matlab pid using the following command:
ps -aux |less | grep matlab
or
ps -ef |less | grep matlab
find the process run by particular use
ps -u hongboz
or just use
top
Get infor about threads
# ps -eLf
# ps axms
even simpler one
pgrep MATLAB
In Matlab, there are three commands used to find the available memory (also the general java commands)
java.lang.Runtime.getRuntime.maxMemory
java.lang.Runtime.getRuntime.totalMemory
java.lang.Runtime.getRuntime.freeMemory
(3)
Three commands are useful!
Jconsole pid,  jmat, and jhat
(4) putty can time out after a while how to reset it?
unset TMOUT
or another way
or simply follows this
it is called putty keep alive
Advertisements

About Hongbo Zhang

My name is Hongbo Zhang. I am a visioner. I am also a practitioner.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s