Hello David,

There are tools/scripts which try to automate the process of chrooting an
application, i.e, guessing libraries needed and so on. But they usually
require additional work (fine-tunning, etc), trial&error tests, etc. Being
Tomcat/Java a common application (at least amongst this list's users), I
had supposed some of you have already done this work and could share with
me their findings/work, so I could anticipate problems, issues, etc.

Cheers,
-Roman

David Delbecq escribió:
> Hi,
> 
> it's, as far as i know, impossible to chroot tomcat after startup
> (unless some JNI tools to do it exist am not aware about)
> So, like any other application you would chroot before linking, you need
> to ensure your chrooted environment contains all libraries needed by the
> JVM (don't ask me for this list, sun doesn't provide it)
> 
> also your JAVA_HOME should be updated after chroot :)
> and tomcat script will required availabilty of bash most probably.
> 
> 
> En l'instant précis du 13/03/07 11:22, Roman Medina-Heigl Hernandez
> s'exprimait en ces termes:
>> Hello,
>>
>> Please, could you recommend to me some tutorial/howto for chrooting Tomcat?
>> Some special points to take into account?
>>
>> I suppose Tomcat version shouldn't mind but anyway...:
>> [EMAIL PROTECTED]:/usr/local/obs/tomcat/bin# ./catalina.sh version
>> Using CATALINA_BASE:   /usr/local/obs/tomcat
>> Using CATALINA_HOME:   /usr/local/obs/tomcat
>> Using CATALINA_TMPDIR: /usr/local/obs/tomcat/temp
>> Using JRE_HOME:       /usr/local/obs/java
>> Server version: Apache Tomcat/5.5.17
>> Server built:   Apr 14 2006 02:08:29
>> Server number:  5.5.17.0
>> OS Name:        Linux
>> OS Version:     2.4.34-grsec-rslabs-k7
>> Architecture:   i386
>> JVM Version:    1.4.2_10-b03
>> JVM Vendor:     Sun Microsystems Inc.
>>
>>
>> PS: A 2nd issue (not related to chroot) that I would like to clarify, if
>> you're so kind: when I run the web app in Tomcat (version showed above) I
>> got several processes (69 in particular). It seems to be related to the
>> following FAQ:
>> http://tomcat.apache.org/faq/unix.html#ps
>> But I've read FAQ entry (and followed the two links in the entry) and it is
>> unclear to me where there is some workaround in latest 2.4 kernels (I'm
>> using 2.4.34; don't wanna switch to 2.6 yet). The FAQ talks about
>> lightweight processes (the "threads", as seen by Linux 2.4), but how could
>> I check that they're really light? I'm trying to "measure" the possible
>> impact of "linux threading problem" over my application. Some URLs or help
>> would be welcomed. I've also set "LD_ASSUME_KERNEL=2.4" and exported the
>> variable, without any apparent change of behaviour.
>>
>> Thanks in advance.
>> -Román
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to