james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ioan Eugen Stan <stan.ieu...@gmail.com>
Subject Re: debug James v3 beta 4
Date Sun, 08 Jul 2012 20:32:52 GMT
Sorry to reply again after me:

To be more specific: use something like:

set JAVA_OPT=-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y

or

wrapper.java.additional.1=-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y

Cheers,

2012/7/8 Ioan Eugen Stan <stan.ieugen@gmail.com>:
> Hi Meir,
>
> Please call me Ioan or Eugen, Stan is my Last Name.
> It seems you need to pass some extra options to the JVM to do that.
> Depending on how you start James you can do it like this:
>
> - if you use ./bin/james-cli.sh or james-cli.bat - via JAVA_OPTS
> environment variable. Edit setenv.bat or setenv.sh and add JAVA_OPTS
> there or set it yourself outside the scripts.
>
> - if you use ./bin/james or ./bin/james.bat - they relay on java
> service wrapper tool for setup. Check out the lines that start with:
>
> #wrapper.java.additional.1=
>
> in ./conf/wrapper.conf.
>
> Are you testing on Windows or Linux?
>
>
> 2012/7/8 Meir Rotstein <meir@rotstein.co.il>:
>> Hi Stan,
>>
>> Thank allot for you replies.
>>
>> I actually asked about remote debug via eclipse, in v2.3.2 the run.bat has
>> the following commented property:
>> set DEBUG=-Xdebug
>> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
>> which should uncommented to enable debugging.
>>
>> My question is how it can be enabled in v3beta4?
>>
>> Thanks,
>> Meir.
>>
>> On Sun, Jul 8, 2012 at 6:06 PM, Ioan Eugen Stan <stan.ieugen@gmail.com>wrote:
>>
>>> Hello Meir,
>>>
>>> The documentation for James 3 configuration is here:
>>> http://james.apache.org/server/3/config.html . You can enable debug
>>> logging via log4j.properties.
>>>
>>> Other ways of monitor are here:
>>> http://james.apache.org/server/3/monitor.html . James beta5 also
>>> includes JE|TM performance monitoring:
>>> https://issues.apache.org/jira/browse/JAMESAPP-9.
>>>
>>>
>>> 2012/7/8 Meir Rotstein <meir@rotstein.co.il>:
>>> > Hello,
>>> >
>>> > I was wondering how can I debug the James server code (+ custom mailet
>>> that
>>> > I've created).
>>> > The only docs I've found were related to older versions and it guides to
>>> > uncomment some properties in the run.bat script which are not presented
>>> in
>>> > this version, copying it from older versions not helping either.
>>> >
>>> > Thanks in advance,
>>> > Meir.
>>>
>>>
>>>
>>> --
>>> Ioan Eugen Stan / CTO / http://axemblr.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-dev-help@james.apache.org
>>>
>>>
>
>
>
> --
> Ioan Eugen Stan / CTO / http://axemblr.com



-- 
Ioan Eugen Stan / CTO / http://axemblr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message