วันจันทร์, กุมภาพันธ์ 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

Installing WebSphere Application Server for Developers on Ubuntu 10.10

Installing WebSphere Application Server for Developers on Ubuntu 10.10


Download the WAS at 
http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html


There're linux & windows 32bit available. Using Download Director was very convenient. We  can resume the download without the 3rd party download manager software. 
After we got the file: was.cd.7000.wasdev.nocharge.linux.ia32.tar.gz; for Ubuntu


Extract to somewhere under our home directory 
i.e.:
$tar xvf was.cd.7000.wasdev.nocharge.linux.ia32.tar.gz -C ~/Temp 


If there's no Temp folder created. We must create it first
$mkdir ~/Temp


Change to Temp folder
$cd ~/Temp


There's folder named WAS
$cd WAS


Do not execut install command yet, it will struct at  stage 'importConfigArchive'. We must create synbolic link from sh to bash instead. which I'm found information from here:
http://meekgonkey.blogspot.com/2009/07/ubuntu-installing-websphere-7.html




$sudo rm /bin/sh
$sudo ln -s /bin/bash /bin/sh



Now we can start the installation, 
$./install


the default installation directory will be:
/home/[your home]/IBM/WebSphere/AppServer


Follow on screen installer instruction. I'm chosen not to user authentication and not select no other component to install.
Other component is: 

  1. Sample application
  2. non-english package for admin console.
  3. non-english package for application runtime
For configuration, start/stop find more information from