Subject: Re: Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location
To: None <netbsd-java@netbsd.org>
From: Cameron K. Brown <cameron@amitconsulting.com>
List: netbsd-java
Date: 05/31/2005 17:19:57
This is a multi-part message in MIME format.

------=_NextPart_000_01C4_01C56604.F79B9C80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Was working for a moment, now it has crashed Apache and I am getting the =
following when I try to shutdown tomcat... =20

srvrs01# ulimit -d 262144
srvrs01# ./bin/shutdown.sh       =20
Using CATALINA_BASE:   /usr/pkg/tomcat4
Using CATALINA_HOME:   /usr/pkg/tomcat4
Using CATALINA_TMPDIR: /usr/pkg/tomcat4/temp
Using JAVA_HOME:       /usr/pkg/java/sun-1.4
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack =
location
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
        at =
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
        at =
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown =
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at =
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



  ----- Original Message -----=20
  From: Cameron K. Brown=20
  To: netbsd-java@netbsd.org=20
  Sent: Tuesday, May 31, 2005 3:57 PM
  Subject: Java HotSpot(TM) Client VM warning: Can't detect initial =
thread stack location


  Hi:

  I have seem some postings on this issue, tried some of the =
suggestions, but still cannot resolve.  I have the following settings =
which seem to suggest it should work, but it doesn't. Any help?

  _______________________________________

  srvrs01# mount
  /dev/ld0a on / type ffs (local)
  /dev/ld0f on /var type ffs (local)
  /dev/ld0e on /usr type ffs (NFS exported, local)
  /dev/ld0g on /home type ffs (NFS exported, local)
  /dev/ld0h on /www type ffs (NFS exported, local)
  kernfs on /kern type kernfs (local)
  procfs on /usr/pkg/emul/linux/proc type procfs (local)
  pid337@srvrs01:/net/swap on /net/swap type nfs (hidden)
  elk:/usr on /elk/usr type nfs
  elk:/usr on /elk/usr/ type nfs
  elk:/www on /elk/www/ type nfs
  elk:/etc on /elk/etc/ type nfs
  srvrs01# ulimit 300000
  srvrs01# /usr/pkg/java/sun-1.4/bin/java
  Java HotSpot(TM) Client VM warning: Can't detect initial thread stack =
location
  Error occurred during initialization of VM
  Could not reserve enough space for object heap
  srvrs01# ulimit
  300000
  _______________________________________



  Thanks


  Cameron Brown
  President
  AMIT Consulting LLC
  19 Kensington Avenue
  Suite 401
  Jersey City, NJ 07304-5025

  201/946.2284 : land
  917/749.3513 : mobile

  www.amitconsulting.com

  ____________________

  This message (including any attachments) contains confidential =
information intended for a specific individual or entity as the intended =
recipient. If you are not the intended recipient, you are hereby =
notified that any distribution, any copying of this message in part or =
in whole, or any taking of action based on it, is strictly prohibited by =
law and may cause liability. In case you have received this message due =
to an error in transmission, we ask you to notify the sender =
immediately.=20
  Safety warning: Please note that the Internet is not a safe means of =
communication or form of media. Although we are continuously increasing =
our due care of preventing virus attacks as a part of our Quality =
Management, we are not able to fully prevent virus attacks as a result =
of the nature of the Internet.
------=_NextPart_000_01C4_01C56604.F79B9C80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Was working for a moment, now it has =
crashed Apache=20
and I am getting the following when I try to shutdown tomcat...&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>srvrs01# ulimit -d 262144<BR>srvrs01#=20
./bin/shutdown.sh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>Using=20
CATALINA_BASE:&nbsp;&nbsp; /usr/pkg/tomcat4<BR>Using =
CATALINA_HOME:&nbsp;&nbsp;=20
/usr/pkg/tomcat4<BR>Using CATALINA_TMPDIR: =
/usr/pkg/tomcat4/temp<BR>Using=20
JAVA_HOME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
/usr/pkg/java/sun-1.4<BR>Java=20
HotSpot(TM) Client VM warning: Can't detect initial thread stack=20
location<BR>Catalina.stop: java.net.ConnectException: Connection=20
refused<BR>java.net.ConnectException: Connection=20
refused<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.socketConnect(Native=20
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.doConnect(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.connectToAddress(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.connect(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.Socket.connect(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.Socket.connect(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.Socket.&lt;init&gt;(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.Socket.&lt;init&gt;(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.apache.catalina.startup.Catalina.stop(Catalina.java:581)<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)<BR>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.catalina.startup.Catalina.process(Catalina.java:180)<BR>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native=20
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.lang.reflect.Method.invoke(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)</FONT></DI=
V>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dcameron@amitconsulting.com=20
  href=3D"mailto:cameron@amitconsulting.com">Cameron K. Brown</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dnetbsd-java@netbsd.org=20
  href=3D"mailto:netbsd-java@netbsd.org">netbsd-java@netbsd.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, May 31, 2005 =
3:57 PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Java HotSpot(TM) =
Client VM=20
  warning: Can't detect initial thread stack location</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have seem some postings on this =
issue, tried=20
  some of the suggestions, but still cannot resolve.&nbsp; I have the =
following=20
  settings which seem to suggest it should work, but it =
doesn't.&nbsp;Any=20
  help?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial=20
  =
size=3D2>_______________________________________</FONT></DIV></FONT></DIV=
>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>srvrs01# mount<BR>/dev/ld0a on / type =
ffs=20
  (local)<BR>/dev/ld0f on /var type ffs (local)<BR>/dev/ld0e on /usr =
type ffs=20
  (NFS exported, local)<BR>/dev/ld0g on /home type ffs (NFS exported,=20
  local)<BR>/dev/ld0h on /www type ffs (NFS exported, local)<BR>kernfs =
on /kern=20
  type kernfs (local)<BR>procfs on /usr/pkg/emul/linux/proc type procfs=20
  (local)<BR><A=20
  href=3D"mailto:pid337@srvrs01:/net/swap">pid337@srvrs01:/net/swap</A> =
on=20
  /net/swap type nfs (hidden)<BR>elk:/usr on /elk/usr type =
nfs<BR>elk:/usr on=20
  /elk/usr/ type nfs<BR>elk:/www on /elk/www/ type nfs<BR>elk:/etc on =
/elk/etc/=20
  type nfs<BR>srvrs01# ulimit 300000<BR>srvrs01#=20
  /usr/pkg/java/sun-1.4/bin/java<BR>Java HotSpot(TM) Client VM warning: =
Can't=20
  detect initial thread stack location<BR>Error occurred during =
initialization=20
  of VM<BR>Could not reserve enough space for object heap<BR>srvrs01#=20
  ulimit<BR>300000</FONT></DIV>
  <DIV><FONT face=3DArial=20
  size=3D2>_______________________________________</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Cameron Brown<BR>President<BR>AMIT =
Consulting=20
  LLC<BR>19 Kensington Avenue<BR>Suite 401<BR>Jersey City, NJ=20
  07304-5025</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>201/946.2284 : land<BR>917/749.3513 : =

  mobile</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><A=20
  =
href=3D"http://www.amitconsulting.com">www.amitconsulting.com</A></FONT><=
/DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>____________________</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>This message (including any =
attachments) contains=20
  confidential information intended for a specific individual or entity =
as the=20
  intended recipient. If you are not the intended recipient, you are =
hereby=20
  notified that any distribution, any copying of this message in part or =
in=20
  whole, or any taking of action based on it, is strictly prohibited by =
law and=20
  may cause liability. In case you have received this message due to an =
error in=20
  transmission, we ask you to notify the sender immediately. <BR>Safety =
warning:=20
  Please note that the Internet is not a safe means of communication or =
form of=20
  media. Although we are continuously increasing our due care of =
preventing=20
  virus attacks as a part of our Quality Management, we are not able to =
fully=20
  prevent virus attacks as a result of the nature of the=20
Internet.</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_01C4_01C56604.F79B9C80--