Resolution:
change the jdk/jre/lib/jvm.cfg
from
-hotspot
-server
-classic
to
-classic
-hotspot
-server
forces the classic jvm to be loaded first
then start jboss with:
java -Xbootclasspath:mypath\jdk1.3\lib\tools.jar;mypath\jdk1.3\jre\lib\rt.jar
%JAXP% -classpath "%CLASSPATH%" -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main %1 %2 %3 %4 %5
%6 %7 %8 %9
And yes, after all this, the jswat does run faster.
Nathan Coast wrote:
> Thanks Scott,
>
> unfortunately - see below. Guess there's something wrong with my jre
> setup. Any ideas? according to the jdk1.3 tools docs the classic flag
> is fine.
>
> F:\jboss-2.1\bin>run
> Unrecognized option: -classic
> Could not create the Java virtual machine.
> Press any key to continue . . .
>
> F:\jboss-2.1\bin>java -version
> java version "1.3.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
> Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
>
> Scott M Stark wrote:
>
>>> Debug -
>>> I'm using jswat (open source debugger) connecting remotely to jboss
>>> to debug servlet / ejb code. This is proving too slow to be
>>> practical. I'm using embedded tomcat as the web container and I'm
>>> starting the jboss with these flags:
>>> java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n
>>> org.jboss.Main
>>>
>>> Is this the most optimal way to debug code? Would different
>>> configurations be faster (tomcat in different VM?). Is the debug
>>> slow because I'm using jswat - are there other free / open debug
>>> tools you'd reccomend?
>>>
>>
>> Use:
>>
>> java -classic -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n
>> org.jboss.Main
>>
>> to disable HotSpot and use the JIT instead. HotSpot is terribly slow
>> when debugging
>> for some reason.
>>
>>
>>
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user