Thursday, April 29, 2010

Software Tips and Tricks

jMeter/Netbeans showing blank screen


add follwing parameter in java arguments

AWT_TOOLKIT="-Dawt.toolkit=sun.awt.motif.MToolkit"


Mysql client - search with Ctrl+r and tab enable

$ sudo apt-get install rlwrap

Then add an alias in ~/.bashrc
alias mysql='rlwrap -a mysql'

Glassfish optimization  parameters

-Xmx3500M
-Xms1024M
-XX:MaxHeapFreeRatio=70
-XX:MaxPermSize=396M
-XX:+UseConcMarkSweepGC
-XX:+ScavengeBeforeFullGC
-XX:+UseFastAccessorMethods
-XX:+UseLargePages
-XX:+AggressiveOpts
-XX:+UseMPSS
-XX:+StringCache
-XX:CompileThreshold=2000000


To add windows true type fonts in Linux

Make a directory to store the fonts: mkdir  /usr/share/fonts/truetype/msfonts
Find the fonts on your windows partition, for me this was /media/sda1/Windows/Fonts
copy the fonts over: cp /media/sda1/Windows/Fonts/*.ttf  /usr/share/fonts/truetype/msfonts 
Re-create the font cache:   fc-cache -f -v

No comments:

Post a Comment