-
1. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
jaikiran Feb 27, 2013 12:01 AM (in response to bimalpreetsingh)Welcome to the forums!
bimalpreetsingh wrote:
As we are losing time, and reaching deadline, URGENT helo is needed.
These are volunteer driven community forums where people help out at their leisure. So asking for URGENT help usually won't receive any replies.
As for your question:
bimalpreetsingh wrote:
When we tried on the new env, the portion of the code where Digester was used started to execute very slowly (response of DigesterLoader.createDigester() was around 2min, and then digester.parse() taking around 4 min) while normally, it takes 1-2 sec.
How did you measure that timings?
-
2. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
bimalpreetsingh Feb 27, 2013 12:12 AM (in response to jaikiran).....normal 1-2 sec vs few minutes....it was evident, and no tool reqd for such observation...
-
3. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
jaikiran Feb 27, 2013 12:18 AM (in response to bimalpreetsingh)bimalpreetsingh wrote:
.....normal 1-2 sec vs few minutes....it was evident, and no tool reqd for such observation...
Let me ask you in another way - How did you narrow it down to those 2 methods and how exactly did you see that it was 4 minutes and 2 minutes?
-
4. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
bimalpreetsingh Feb 27, 2013 12:31 AM (in response to jaikiran)We executed the code in eclipse environment in debug mode.
We put the breakpoints at these code lines.
And by observation we came to know that execution is taking time at these points..
-
5. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
jaikiran Feb 27, 2013 12:36 AM (in response to bimalpreetsingh)bimalpreetsingh wrote:
We executed the code in eclipse environment in debug mode.
We put the breakpoints at these code lines.
And by observation we came to know that execution is taking time at these points..
That's not the right way to test it http://stackoverflow.com/questions/2195720/why-does-java-code-slow-down-in-debugger
bimalpreetsingh wrote:
We put the breakpoints at these code lines.
What does the code look like?
You'll have to provide some/lot more details about your application, the exact version of AS7 and other such details for anyone to be able to help.
-
6. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
bimalpreetsingh Feb 27, 2013 1:24 AM (in response to jaikiran)i have put the code in tar.. But i am not able to upload the tar file ..
Suggest me any help
-
7. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
nickarls Feb 27, 2013 1:45 AM (in response to bimalpreetsingh)There is an "Use advanced editor" in the upper-right-hand-corner of the editor. Distill the deployment to a bare minimum that can reproduce the issue.
-
8. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
bimalpreetsingh Feb 27, 2013 2:50 AM (in response to nickarls)i am attaching the source code .
test.java is main() method class.
-
digester_test.tar.gz 1.2 MB
-
-
9. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
nickarls Feb 27, 2013 3:33 AM (in response to bimalpreetsingh)Do you think you could also pack it as a war so that a e.g. a servlet call would trigger the parsing (and save us some time)? ;-)
-
10. Re: Apache Digester (1.8 and 2.1) very slow with Jboss AS 7. Why ?
sfcoy Feb 27, 2013 6:50 AM (in response to bimalpreetsingh)This sounds a bit like some code is trying to access something on the internet, and failing.
Check your network connections (netstat) while your application is in a "hung" state.