mherger wrote: 
> Jack - please bare with me, I'm no java guy at all (and I haven't been
> any helpful in this thread so far anyway...). But wouldn't there be more
> lightweight alternatives to tomcat? When I first read about it being
> used here, I thought it was overkill. After reading your above statement
> I saw myself confirmed :-).

Well, yes and no. The war is a straight drop-in, ie. no changes required
to run under jetty, but I have seen too many unexplained crashes under
jetty to recommend doing so. There is a reason why people (including me)
develop on jetty, but use tomcat in production. ;) And on low powered
hardware, (like these ARM devices), I'll bet that the performance
difference, (which is mainly going to be down to the time it takes to
get the war deployed), is not that great. Those numbers I posted for
tomcat start-up, are pretty much worse case scenario at system start
where there are a bunch of processes competing for CPU, not just tomcat.
It is sub 10 second on a restart: starting, deploying the war and ready
to service requests. Of course, then you still end up with another small
delay the first time the jsp is compiled for each page. But me, I'll
take reliable all day long over faster.

mherger wrote: 
> 
> Today I talked to someone who happened to mention they were using jetty
> during development, while running tomcat in production. Because jetty
> was so much smaller and quicker to set up. Would this be an option?

I haven't actually benchmarked this at all on the Wandboard. Someone
could if they wanted to. Just install jetty via yum. Stop tomcat,
disable it. Enable jetty, start it and copy the war from
/usr/share/tomcat/webapps to /var/lib/jetty/webapps. 

This is probably all that needs to be done, for anyone who does want to
run it under jetty......


Code:
--------------------
    
  sudo systemctl disable tomcat.service
  sudo systemctl stop tomcat.service
  sudo yum install jetty
  sudo systemctl enable jetty.service
  sudo systemctl start jetty.service
  sudo cp /usr/share/tomcat/webapps/CommunitySqueeze.war /var/lib/jetty/webapps
  
--------------------


Any complaints about there being no response to web requests, that there
is nothing listening on port 8080, after an hour or two, to /dev/null.
You were warned and I'm not listening. ;)


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98190

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to