Category: Uncategorized
-
Unix Memory Management – Show top memory consumers
ps aux | awk ‘{a[$11]+=$4;}END{for(i in a)print a[i]” “i;}’| sort -k1rn | head -n 10 Sourceshttp://stackoverflow.com/questions/131303/how-to-measure-actual-memory-usage-of-an-application-or-process
-
PgAdmin UI – Show Long Text – Fix for truncated Texts
How TO Display the Full column Text in PgAdmin Menu: pgAdmin3 -> Preferences -> Query Tool -> Query Editor -> Max. characters per column Questions: Re: In PgAdmin, how can I see all of a long text field? References: https://www.postgresql.org/message-id/AANLkTikUPqgMHGPoanqjN%3DvvbiYk5Ax637bxxvaGw3Dz%40mail.gmail.com
-
uLimit – Finally fixed plus gevent install
ab -n100000 -c1000 -r http://localhost:9004/ # append /etc/security/limits.conf # for a specific user # sudo sh -c ‘printf “‘$USER’ soft nofile 1000000″ >> /etc/security/limits.conf’ # for all users sudo sh -c ‘printf ” * soft nofile 1000000 * hard nofile 1000000 * soft nproc 1000000 * hard nproc 1000000″ >> /etc/security/limits.conf’ # sudo vim /etc/security/limits.conf…