Glassfish 3 Cluster and Local init scripts

I’m trying to set-up a Glassfish 3.1.1 Cluster for testing purposes. Currently, I’ve got 2 hosts with Glassfish 3.1.1 installed. I’ve set-up a DAS domain on host1, and followed this guide to create the cluster: http://javadude.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/ This all worked quite well, and I’ve got 2 instances running on the 2 hosts which I can start/stop … Read more

Putting varnish in front of a mod_jk balanced Glassfish cluster

I am just trying to get varnish in front of Glassfish instances, which are load balanced with the mod_jk connector in Apache. But I don’t really know how to combine them. The AJP_Ports for instances are e.g. 8009, 8010, 8011. I am not able to access them via the browser, but I can access the … Read more

Unable to use port even if sudo is used to create a domain for glassfish in ubuntu

I am trying to create a domain in glassfish. I have already done this in another server with ubuntu 12.04. Everything worked fine. I was just trying to replicate the same setup in another server with ubuntu 12.04 Downloaded the glassfish 3.1.2 zip from oracle Unzipped it to opt ran sudo ./asadmin and ran the … Read more

Glassfish 2.1 won’t start after changing Maximum Pool Size

I’m running Glassfish 2.1 on an Ubuntu server, I was trying to test something, so I change in the administrative console on localhost:4848 the Maximum Pool Size to 1, I stopped the server, but when I tried to start it again (from the command line) sudo /opt/glassfish/bin/asadmin start-domain domain1 It got stuck in [#|2013-04-24T11:20:32.741-0500|INFO|sun-appserver2.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ … Read more

Apache with mod_jk with glassfish instances, large number of established connections for low number of users [duplicate]

This question already has answers here: Can you help me with my capacity planning? (3 answers) Closed 8 years ago. I making a tuning for our production servers for a portal, we have 4 servers, 2 for web and 2 for app, and there is a firewall before and after web servers (so yes there … Read more

Glassfish3 Apache mod_proxy_ajp and missing headers

I got Apache 2.2.22 with mod_proxy and mod_proxy_ajp. Here is my configuration of mod_proxy: ProxyRequests Off ProxyPreserveHost On ProxyErrorOverride On ProxyPass / ajp://localhost:8009/ ProxyPassReverse / http://www.myservice.com/ Generally it works fine but when you look at logs of mod_proxy you can see that few http headers are missing. Header[0] [Host] = [www.myservice.com] Header[1] [User-Agent] = [Mozilla/5.0 … Read more

JVM will not start when starting Glassfish on RHEL

GlassFish 3.0.1 RHEL 6.3 When trying to start GlassFish I get the following JVM error: JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with exit code 0. Before it died, it produced the following output: Command start-domain failed. I have plenty of free memory: 3689 MB Answer As stated in the error message, it’s … Read more