[ 
https://issues.apache.org/jira/browse/AXIS2-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635172#action_12635172
 ] 

Jake Goulding commented on AXIS2-4051:
--------------------------------------

I added some instrumentation to my Stub. I call System.currentTimeMillis() 
before and after the static initialization, and result is:

Took 65780 ms (2349 ms avg)

The entire run of my program, according to `time` was:

real    1m8.696s
user    1m11.776s
sys     0m1.616s

This means that creating the classes takes 91.6% of the time of my entire 
program. This would be even worse if I were not calling any SOAP functions.

> Starting java with many JAXB objects is very slow
> -------------------------------------------------
>
>                 Key: AXIS2-4051
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4051
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: 64-bit Gentoo Linux
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_13-b05, mixed mode)
>            Reporter: Jake Goulding
>
> I have about 600 JAXB objects, and my Stub has 30 calls to 
> JAXBContext.newInstance. Running a completely empty main method takes 1 
> minute. I presume this is because of the overhead of creating all the static 
> instances at once at the beginning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to