วันจันทร์, กุมภาพันธ์ 28, 2554

Config WebSphere Application Server for Developers on Ubuntu

HOWTO config WebSphere Application Server for Developers v.7.0 on Ubuntu 10.10


Config JVM (a.k.a -Xms -Xmx parameter)

Go to (Left pane)
    Servers > WebSphere application servers

Select a server, in table on right pane
  click server1

Find Server Infrastructure under the Configuration tab.

   click Server Infrastructure > Java and Process Management Process definitionAdditional PropertiesJava Virtual Machine

I was change to following value :-  
    Initial heap size  = 512MB (-Xms)
    Maximum heap size 
 = 512MB (-Xmx)

If you want to put some jvm arguments such as -javaagent, we can put into this box 
Generic JVM arguments 

    Click OK button (on bottom of this section) to save the configuration, and also don't forget to confirm the changed by click on Save master configuration on top of the right pane (appeared after you click OK/Apply button)

We might restart the WAS for the change to take effects.

วันศุกร์, กุมภาพันธ์ 25, 2554

Finding cause of OutOfMemoryError in WebSphere 7.0 on Ubuntu 10.10

HOWTO find cause of OutOfMemoryError in WebSphere for Developer 7.0 on Ubuntu 10.10


IBM suggest to enable the verbose gabage collector option and use the MustGather software.
HOWTO Enabling verbosegc on releases of Version 7.0 - Application Servers



  • In the Administrative Console, expand Servers, expand Server Types, and then click WebSphere application servers.
  • Click on the server that you would like to work with, for example, server1.
  • On the Configuration tab, under Server Infrastructure, expand Java and Process Management, and click Process Definition.
  • Under the Additional Properties section, click Java Virtual Machine.
  • Check the Verbose Garbage Collection check box.
  • Apply and Save the changes.
  • Restart the Application Server for the changes to take effect.

Free Up memory in Ubuntu

HOWTO free Up memory in Ubuntu

When you close almost every application but information from 'free' command still report a hugh number of memory consumed. Try this method ;)

echo 3 > /proc/sys/vm/drop_caches

I'm don't know much in detail which this caches was but following command line do free up memory; there're more free memory from the free's report now