Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 22, 2011 9:52 am 
Offline
Senior Newbie

Joined: Sat Mar 06, 2004 7:55 am
Posts: 13
Hi all

I have a Jetty http://jetty.codehaus.org/jetty/ application running under nginx and managed by daemontools, which sporadically shuts down. We can't find any evidence as to why. However, my customer can run his application without incident on a dedicated server.

Does anyone here have experience with running Jetty on a Linode?

Specific details posted on server fault:

http://serverfault.com/questions/283007/jetty-http-servlet-server-in-java-unexpectedly-shuts-down

Thanks
Dale


Top
   
PostPosted: Wed Jun 22, 2011 5:10 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
zoot wrote:
Does anyone here have experience with running Jetty on a Linode?

I have a reporting servlet (JasperReports-based) running beneath Jetty on several of my Linodes and I've never had a glitch, for what it's worth, though I suspect it's not an apples to apples comparison.

In my case, nginx is the front-end server, but then there's my own application server, which in turn internally uses the Jetty servlet to generate reports. So nginx never directly proxies to Jetty (well, aside from dev testing). Jetty is started/maintained by a regular /etc/init.d script. My Linodes are all Ubuntu 8.04 LTS systems with Jetty 6.1.17 (same version I started with in 2009). Our JREs are close - I recently upgraded to 1.6.0_24, but ran with 1.6.0_14 and 1.6.0_20 for at least a year each.

Shot in the dark (and I presume you've looked), but what size Linode are you using and is there any chance you may be having memory issues? Maybe an inability to obtain memory is causing the shutdown? Java containers (even Jetty) can be fairly heavyweight, especially with default options. For example, in my case (Linode 512s) I reduced -Xmx on the Jetty6 java startup options to 64MB - it's been so long I can't remember what it defaulted to, but it was far more. (Even with this it's the single largest process I have, even above and beyond my entire application stack)

-- David


Top
   
PostPosted: Tue Jul 12, 2011 1:24 pm 
Offline
Senior Newbie

Joined: Sun Feb 07, 2010 6:15 am
Posts: 7
In case you are still troubleshooting this: look for a hs_err_pid***.log file. This is what java generates when it unexpectetly has to close a java proces (i.e. due to a non-application error). My first place too look for this would be /tmp...


Top
   
PostPosted: Mon Aug 08, 2011 12:32 pm 
Offline
Senior Newbie

Joined: Sun Aug 07, 2011 9:35 am
Posts: 10
zoot wrote:
Does anyone here have experience with running Jetty on a Linode?


Been running Jetty 6/7 on Linodes fine for more than a year now.

Just make sure your minimum and maximum heap size and thread stack size when starting the JVM.

The only time it goes down these days is when there is a power outage at Fremont!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group