I second Janna B.
I set this up on Solaris monday. It’s running fantasticly and
performing like nothing I’ve seen before
Completely stable memory,
no wirings or anything bad for 5 days now… (with several ab/htperf
stresstests).
In case you wonder how to integrate it with SMF, here’s the short, no
fluff version
[email protected]:~/ $ cat /etc/apache2/2.2/sites/ocr.smidig.no
<VirtualHost *:80>
ServerName ocr.smidig2009.no
DocumentRoot /var/apps/smidig2009/oc/smidig2009/public
<Directory /var/apps/smidig2009/oc/smidig2009/public>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Proxy balancer://smidig2009>
BalancerMember http://10.214.206.200:3000
BalancerMember http://10.214.206.201:3000
ProxyPass / balancer://smidig2009/
CustomLog /var/log/apache2/smidig2009_oc_apache_access_log combined
$ cat config/glassfish.yml
environment: oc
http:
port: 3000
contextroot: /
log:
# Logging level. Log level 0 to 7. 0:OFF, 1:SEVERE, 2:WARNING,
# 3:INFO (default), 4:FINE, 5:FINER, 6:FINEST, 7:ALL.
log-level: 5
jruby-runtime-pool:
initial: 1
min: 1
max: 1
daemon:
enable: true
pid: tmp/pids/glassfish-oc.pid
jvm-options: -server -Xmx2500m -Xms64m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:NewRatio=2 -XX:+DisableExplicitGC
-Dhk2.file.directory.changeIntervalTimer=6000
$ cat config/glassfish-gem.smf.xml
<?xml version='1.0'?>
<service_bundle type=‘manifest’ name=‘glassfish-gem’>
<service_fmri value=‘svc:/system/filesystem/local’/>
<service_fmri value=‘svc:/network/loopback’/>
<service_fmri value=‘svc:/milestone/multi-user’/>
<exec_method name=‘start’ type=‘method’
exec=‘/opt/jruby/bin/glassfish’ timeout_seconds=‘60’ />
<exec_method name=‘stop’ type=‘method’ exec=‘:kill’
timeout_seconds=‘60’ />
<method_context
working_directory=‘/var/apps/smidig2009/oc/smidig2009’>
<method_credential user=‘smidig_no’
group=‘daemon’ />
<method_environment>
</method_environment>
</method_context>
<method_context
working_directory=‘/var/apps/smidig2009/production/smidig2009’>
<method_credential user=‘smidig_no’
group=‘daemon’ />
<method_environment>
</method_environment>
</method_context>
</service_bundle>
$ pfexec svccfg validate config/glassfish-gem.smf.xml
$ pfexec svccfg import config/glassfish-gem.smf.xml
$ pfexec svcadm enable glassfish-gem:smidig2009_oc
$ pfexec svcadm restart apache22
oc
On Thu, Jun 25, 2009 at 4:47 PM, Mistress Janna
Brossard[email protected] wrote:
ProxyPass / http://localhost:3000/
easier deployment, or a faster execution? -Janna B
How does the proxying to Glassfish work? Doesn’t Glassfish have Grizzly for
I proxy to the glassfish gem out of apache.
“Change requires small steps.”
Windows Live™: Keep your life in sync. Check it out.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email