logo       

Re: Re: Running Jetty as Root under Linux: msg#00008

java.jetty.general

Subject: Re: Re: Running Jetty as Root under Linux

Hy Martin


i would strongly recommend you dump the idea of running jetty as the root,
just create a bridge between jetty and a custom application (which is
being run with root rights and can access the devices).

the bridge can be anything from a simple socket based command/response interface
up to javas rmi , but as the first one is far more simple to create & implement,
i would encourage you to choose it.


I'm doing this infact, an udp server to handle udp request from jetty and write on serial link.


the first reason why unix system has the root account, is keeping the security
tight, running a webserver or anything alike that as the root, will make the
whole effort of the platform pointless.


My application isn't a public web-server, but running on a private lan,
intrusions aren't impossible.


i don't believe jetty has any issues with root privileges, cause jetty doesn't
know a thing about who is running it. the jvm shouldn't be care for that neither.


I think the same...


just incase nothing seems to help, can you post your machine's operating system
and jvm vendor and version ? could it be that your os kernel version has issues
with the whole jvm ?

It's running on S.O : linux Red Hat 7.3, jre : sun 1.4.0_01,
driver : IBM comm-api for linux (they were never upgraded )


so far complete freezes with jetty have been noticed in pretty rare cases, one of
them was running out of filehandles. the other ones as i think i can recall, were
related to threadpooling, but that should be fixed in your version.


Thank's for all Martin and Davide, i also think the problem was on serial driver,
the only thing i can do, is to add new udp server and try with it.


--
-----------------------------
Andrea Alimonti
Notio Srl
viale Ratto delle Sabine 45/a
00131 Rome, Italy
tel +39-06-41.29.47.73
fax +39-06-41.40.44.28
-----------------------------


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise