To analyze how a Java web application is performed in terms of its memory usage, one can use Eclipse Memory Analyzer to do it.
Ref: Eclipse MAT
Sunday, September 20, 2009
Tuesday, July 14, 2009
InetAddress.getByName( ) cached result
java.net.InetAddress.getByName( ) will cached the result, even when the host name IP is changed. To fix this, issue the following option to Java VM:
-Dsun.net.inetaddr.ttl=0
It sets the timeout of the DNS cache to zero.
-Dsun.net.inetaddr.ttl=0
It sets the timeout of the DNS cache to zero.
Subscribe to:
Posts (Atom)
tail -f replacement
2 nice " tail -f " replacement: lnav tspin Both available in Linux with text highlighting. Beautiful.
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...