Saturday, August 7, 2010

Google Web Tool Kit on 64 bit Ubuntu OS

I see many posts abut trying to run Google Web Toolkit in a 64 bit Linux environment, the toolkit seems to be trying
to use 32 bit libraries when automatically starting Mozilla for testing. 
 
The error looks something like this...
 
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /opt/app/eclipse/plugins/org.eclipse.platform_3.5.0_155965261/
plugins/com.google.gwt.eclipse.sdkbundle.linux_1.7.1.v200909221731/gwt-linux-1.7.1/
mozilla-1.7.12/libxpcom.so:
libstdc++.so.5: cannot open shared object file: No such file or directory
  
My solution to this was to force install a 32bit library (libstdc++5.so) into my 32 bit Ubuntu OS.
 
sudo dpkg -i --force-architecture ./libstdc++5_3.3.6-17ubuntu1_i386.deb
 
GWT should now be able to start up using the Mozilla libraries.  Good luck! 


JMeter for Load Testing

JMeter released a 2.4 version a couple of weeks ago, and I decided to download the tool.  So far, I love it!  Here is why:

  1. Apache JMeter is simple and there is very little barrier to starting up a simple load test from your desktop.  Perfect for my development load tests.
  2. It is free and licensed under Apache.
  3. JMeter runs on the JVM, so the tool is multi-platform.
  4. JMeter allows testing of the following server types...

    Web - HTTP, HTTPS
    SOAP
    Database via JDBC
    LDAP
    JMS
    Mail - POP3(S) and IMAP(S)

  5. In JMeter, you can configure the number of thread groups for both sending requests and sampling initiated during tests.
  6. The results can be dumped into CSV format for graphing via Excel or some other spreadsheet.  JMeter also contains plugins, several of which will generate jpg graphs that can be copied into documentation.
  7. You can record manual web click interactions to create HTTP tests.  These interactions can be saved as a test case and run later during load testing.
  8. Supports JUnit testing too!
  9. JMeter can be distributed in a cluster for simulating requests from multisite locations.

There are many comprehensive suites of test tools available: JRunner, Selenium, etc. However, for quick turnaround in a development environment JMeter cannot be beat.  It is easy and it is simple to show others how to run the tool with very little training.