You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Glen Ezkovich <gl...@hard-bop.com> on 2004/09/19 00:10:09 UTC

chroot Linux 2.4.20-8 and tomcat 5.0.27

We are trying to run tomcat 5.0.27 in a chroot jail on Linux 2.4.20-8 . 
When we start tomcat we always get the following error message:

> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
> location

About 50% of the time its worse.

> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
> location
> Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard 
> pages failed.
> Fatal: Stack size too small. Use 'java -Xss' to increase default stack 
> size.

We get the same error running any java application with chroot. I'm 
pretty sure this is because some file with important information is not 
available inside our chrooted file structure.

Does anyone have a solution to this problem?

Thanks,

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon



A Proverb for Paranoids:
"If they can get you asking the wrong questions, they don't have to 
worry about answers."
- Thomas Pynchon Gravity's Rainbow


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

Posted by Glen Ezkovich <gl...@hard-bop.com>.
Thanks Oliver, that did the trick. I had the feeling that was the 
directory I needed but for some reason I tried to make a new copy. What 
was I thinking.

On Sep 19, 2004, at 9:42 AM, Olivier Jolly wrote:

> Just for checking, have you mounted /proc in the chroot ? It is a 
> source of valuable information for any program running inside the jail 
> and could explain the misbehaviour.
> "mount -t proc /proc proc" as root in the chroot
>
> Olivier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon



A Proverb for Paranoids:
"If they can get you asking the wrong questions, they don't have to 
worry about answers."
- Thomas Pynchon Gravity's Rainbow


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

Posted by Olivier Jolly <ol...@pcedev.com>.
Glen Ezkovich wrote:

> Sjoerd,
>
> Thanks for your input. We installed Java within the chroot jail and 
> are still having this problem. I have no problem increasing the stack 
> size using Xss but I have no idea what property sets the initial 
> thread stack location or which would allow us to allocate stack guard 
> pages.
>
Just for checking, have you mounted /proc in the chroot ? It is a source 
of valuable information for any program running inside the jail and 
could explain the misbehaviour.
"mount -t proc /proc proc" as root in the chroot

Olivier

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

Posted by Glen Ezkovich <gl...@hard-bop.com>.
Sjoerd,

Thanks for your input. We installed Java within the chroot jail and are 
still having this problem. I have no problem increasing the stack size 
using Xss but I have no idea what property sets the initial thread 
stack location or which would allow us to allocate stack guard pages.

On Sep 19, 2004, at 8:06 AM, Sjoerd van Leent wrote:

> Did you install Java within or without the chroot jail?
>
> If it is without the chroot jail, it can't detect certain 
> configuration files, with the abcense of these, it doesn't know how to 
> initialize itself. You could either:
>
> Use the parameters for the java executable
> Copy the needed configuration files (property files)
> Install Java within the chroot jail
>
> Regards,
> Sjoerd
>
> Glen Ezkovich wrote:
>
>> We are trying to run tomcat 5.0.27 in a chroot jail on Linux 2.4.20-8 
>> . When we start tomcat we always get the following error message:
>>
>>> Java HotSpot(TM) Client VM warning: Can't detect initial thread 
>>> stack location
>>
>>
>> About 50% of the time its worse.
>>
>>> Java HotSpot(TM) Client VM warning: Can't detect initial thread 
>>> stack location
>>> Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard 
>>> pages failed.
>>> Fatal: Stack size too small. Use 'java -Xss' to increase default 
>>> stack size.
>>
>>
>> We get the same error running any java application with chroot. I'm 
>> pretty sure this is because some file with important information is 
>> not available inside our chrooted file structure.
>>
>> Does anyone have a solution to this problem?
>>
>> Thanks,
>>
>> Glen Ezkovich
>> HardBop Consulting
>> glen at hard-bop.com
>> http://www.hard-bop.com - new and improved site coming soon
>>
>>
>>
>> A Proverb for Paranoids:
>> "If they can get you asking the wrong questions, they don't have to 
>> worry about answers."
>> - Thomas Pynchon Gravity's Rainbow
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon



A Proverb for Paranoids:
"If they can get you asking the wrong questions, they don't have to 
worry about answers."
- Thomas Pynchon Gravity's Rainbow


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

Posted by Sjoerd van Leent <sv...@wanadoo.nl>.
Did you install Java within or without the chroot jail?

If it is without the chroot jail, it can't detect certain configuration 
files, with the abcense of these, it doesn't know how to initialize 
itself. You could either:

Use the parameters for the java executable
Copy the needed configuration files (property files)
Install Java within the chroot jail

Regards,
Sjoerd

Glen Ezkovich wrote:

> We are trying to run tomcat 5.0.27 in a chroot jail on Linux 2.4.20-8 
> . When we start tomcat we always get the following error message:
>
>> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
>> location
>
>
> About 50% of the time its worse.
>
>> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
>> location
>> Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard 
>> pages failed.
>> Fatal: Stack size too small. Use 'java -Xss' to increase default 
>> stack size.
>
>
> We get the same error running any java application with chroot. I'm 
> pretty sure this is because some file with important information is 
> not available inside our chrooted file structure.
>
> Does anyone have a solution to this problem?
>
> Thanks,
>
> Glen Ezkovich
> HardBop Consulting
> glen at hard-bop.com
> http://www.hard-bop.com - new and improved site coming soon
>
>
>
> A Proverb for Paranoids:
> "If they can get you asking the wrong questions, they don't have to 
> worry about answers."
> - Thomas Pynchon Gravity's Rainbow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org