Thursday, January 12, 2017

Find RSS resident set size for MDEX

Resident set size (RSS) for MDEX is the amount of physical memory currently allocated and used by the MDEX Engine process

Check for MDEX and platformservice processes :

ps -ef | grep MDEX

mayank      15632 48215  0 13:02 ?        00:00:40 /tmp/endeca/MDEX/11.0.0/bin/dgraph --threads 14  --cmem 12288 --spl --spl_sthresh 150 --dym --dym_hthresh 5 --dym_nsug 1 --stat-abins --lang en --port 15000 --pidfile tmp/endeca/apps/EndecaApp/dgraph.pid --log tmp/endeca/apps/EndecaApp/logs/dgraphs/DgraphA1/DgraphB1.reqlog --out tmp/endeca/apps/EndecaApp/logs/dgraphs/DgraphA1/DgraphB1.log --spellpath tmp/endeca/apps/EndecaApp/data/dgraphs/DgraphA1/dgraph_input --updatedir tmp/endeca/apps/EndecaApp/data/dgraphs/DgraphA1/dgraph_input/updates --updatelog tmp/endeca/apps/EndecaApp/logs/dgraphs/DgraphA1/DgraphB1.updatelog tmp/endeca/apps/EndecaApp/data/dgraphs/DgraphA1/dgraph_input/EndecaApp
mbatra 19505 17549  0 14:11 pts/0    00:00:00 grep MDEX


This gives us two process ids viz - 15632


Next run following command :

ps -eo pid,ucomm,rss | grep 15632

15632 dgraph          1245698

This tells Resident set size for dgraph is 1.24 GB

Now check what is total infra memory you have :

free -m

                  total         used       free     shared    buffers     cached
Mem:        64586       5659     61256          1        629       2864
-/+ buffers/cache:       4521     62456
Swap:         4582          0         4582

This tells there is total of 61.2 gigs of memory is free and 5.6 gigs is being used (out of which 1.24 is being used by the dgraph)

Now you can decide if you want to add another dgraph to same server or need another server.










No comments:

Post a Comment