-
1. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 15, 2008 2:33 AM (in response to nameghino)Try taking thread dumps at regular intervals when JBoss is starting to see where exactly its taking time. See this for details about how to take thread dumps http://wiki.jboss.org/wiki/StackTrace
-
2. Re: Eclipse + JBoss Debug Mode issue
nameghino May 15, 2008 12:08 PM (in response to nameghino)Thanks for the tip.
I'm taking those thread dumps right now, both from Eclipse and from JBoss and will analyze them later. However, it's taking extra-time for everything, it's not that it gets stuck at some specific point every time. -
3. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 16, 2008 5:49 AM (in response to nameghino)"nameghino" wrote:
However, it's taking extra-time for everything, it's not that it gets stuck at some specific point every time.
I do expect the server startup to slow down when debugging is enabled. How much time does it take to start the server in debug mode without your application being deployed? What exactly does your application contain? -
4. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 16, 2008 5:50 AM (in response to nameghino)Also post the params that you are passing through the startup script to enabled "debug" mode for JBoss.
-
5. Re: Eclipse + JBoss Debug Mode issue
nameghino May 16, 2008 10:36 AM (in response to nameghino)JBoss starts in 1m15s average in run mode, and 2m30s average in debug mode (when this issue is not present), deploying the application. Without deploying the application, it takes about 25 seconds to start in run mode and about 40 secs. in debug mode.
Program arguments for JBoss are:
--configuration=default
VM arguments are:
-Xms256m -Xmx512m -XX:MaxPermSize=256m
Taken from the server properties in the Eclipse JBoss Servers view, although it wasn't specified that those parameters were used for debug mode or if there were extra debug mode parameters.
What do you mean by "what exactly does your application contain?"? I'm using the Seam framework by the way. -
6. Re: Eclipse + JBoss Debug Mode issue
nameghino May 20, 2008 10:26 AM (in response to nameghino)Bump
-
7. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 20, 2008 10:56 AM (in response to nameghino)"nameghino" wrote:
What do you mean by "what exactly does your application contain?"? I'm using the Seam framework by the way.
The application deployment time heavily depends on the components packaged in the application. For example if the application contains EJB3 beans, then the deployment phase will consist of parsing the annotations and other metadata.
The parameters that you posted does not contain anything specific to the debugger. Usually, the run.bat would contain-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
-
8. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 20, 2008 11:28 AM (in response to nameghino)I assume that you are not trying to debug anything *during* your application deployment. In that case, you can attach the Eclipse debugger after your application has been deployed.
-
9. Re: Eclipse + JBoss Debug Mode issue
nameghino May 22, 2008 10:47 AM (in response to nameghino)Yes, the application contains several EJB3 beans, and I'm aware of the usual deployment time.
I also checked run.bat for a line like the one you posted, but there's only one, and it's commented.
rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
And no, what I'm trying to debug is the application running on the server, after it's been deployed. -
10. Re: Eclipse + JBoss Debug Mode issue
nameghino May 26, 2008 10:16 AM (in response to nameghino)Bump
-
11. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 27, 2008 10:49 AM (in response to nameghino)"nameghino" wrote:
I also checked run.bat for a line like the one you posted, but there's only one, and it's commented.
rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
In that case, i am not sure how the server is started in debug mode. Probably the IDE picks up some other configuration file for starting JBoss?"nameghino" wrote:
And no, what I'm trying to debug is the application running on the server, after it's been deployed.
So, as mentioned in one of my earlier replies, you can attach the debugger to the server "after" the application has been deployed. This way you don't run into this issue (which you mention happens "during" application deployment). -
12. Re: Eclipse + JBoss Debug Mode issue
praveenas May 28, 2008 1:01 AM (in response to nameghino)Hi,
I am trying to cluster my Jboss deployed a war file written using ECHO2 and Hibernate. There are some issues to be solved in the source of EC?HO2. For that I need to run the war in Jboss in Debug mode. My m/c is running on LINUX. Please let me know where I can find proper documentation for configuring JbossIDE plugin in my current eclipse which already has Tomcat. I did nt find complete documentation in http://docs.jboss.com/jbosside/install/build/en/pdf/JBossIDE-Install.pdf
Thank you in advance.
Praveena. -
13. Re: Eclipse + JBoss Debug Mode issue
jaikiran May 28, 2008 1:57 AM (in response to nameghino)"praveenas" wrote:
Hi,
I am trying to cluster my Jboss deployed a war file written using ECHO2 and Hibernate. There are some issues to be solved in the source of EC?HO2. For that I need to run the war in Jboss in Debug mode. My m/c is running on LINUX. Please let me know where I can find proper documentation for configuring JbossIDE plugin in my current eclipse which already has Tomcat. I did nt find complete documentation in http://docs.jboss.com/jbosside/install/build/en/pdf/JBossIDE-Install.pdf
Thank you in advance.
Praveena.
Praveena,
Your question is not related to what is being discussed in this thread. Please open a separate topic in this forum. -
14. Re: Eclipse + JBoss Debug Mode issue
praveenas May 28, 2008 4:33 AM (in response to nameghino)Hi,
I am trying to run Jboss in Debug mode on eclipse to find the bugs.
I am looking for good documentation steps to install Jboss IDE. (I am on Linux m/c), on my eclipse which already has tomcat configured in it.
Hope I have posted at the right location for my requirement. Please let me know the available docs for updating jbosside plugin on eclipse sdk.
http://docs.jboss.com/jbosside/install/build/en/pdf/JBossIDE-Install.pdf . This document did not give me complete details of configuration.
Thanks in advance for your help in providing required documentaion.