Wednesday, November 5, 2008

Two More Failures

Two more issues with the production server have been resolved. First, GlassFish JVM settings were modified to make it actually work with only 512MB memory when deploying large .war files. I changed -client to -server and I reduced the max from 512 to 384. Not on the first try mind you. My first guess was to increase the perm gen but then nothing else would run on the server. It also took a lot of research to figure out how to have OpenSolaris forward http requests on port 80 to GlassFish running on port 8080. Most of the information I was initially finding was for using iptables on Linux. OpenSolaris doesn't have iptables and the previous way of using the inetd.conf file is no longer correct. So it took forever to find what is a very easy change. Enable ipfilter like so:

svcadm enable network/ipfilter
Then create an ipnat.conf file in the /etc/ipf directory with the following contents:

rdr xnf0 your.ip.add.ress/32 port 80 -> 127.0.0.1 port 8080 tcp

Load the file by using the -f attribute with ipnat:

ipnat -f /etc/ipf/ipnat.conf

Now the application can be deployed. But... in an effort to shrink the .war file, which was originally just short of 30 MB, I took out the fun features. This has left Q2OH an extremely simple application. So Q2OH 1.0 will be the Internet's simplest application.

No comments:

Post a Comment