This particular line is executed for 17 to 18 mins. The Command prompt will be ideal for those 18 mins with the below message:
[apt] warning: Annotation types without processors: [java.lang.SuppressWarnings, java.lang.Override, org.apache.beehive.controls.system.jdbc.JdbcContr
ol.ConnectionDataSource, org.apache.beehive.controls.system.jdbc.JdbcControl.SQL, com.bea.control.annotations.TransactionAttribute, com.bea.p13n.controls.se
Do any one faced similar issue. Please help me to reduce my build time.
Thanks for your Response Kal.
I have changed as your suggestion. My memoryinitialsize is 512m and memoryMaximumSize is 2048 m. But still the build takes 22 mins total. 17 to 18 mins for that particular command execution.
I would guess that your application is big enough that that's how long the build needs to take to process it. A 17 to 18 minute build doesn't strike me as overly long for non-trivial application, but here are some strategies for coping with long build times:
1. Modularize your application. If you only make changes in one part, you will be able to re-build just that module, saving yourself the time of building everything from scratch.
2. Get faster hardware. Builds are very sensitive to disk system performance. A laptop with an energy-saving 5400 RPM HDD will run the build several times slower than a desktop with several 10k Raptors in RAID, even if they have comparable CPU and memory.
As Kal mentioned
I have set verbose="true" in the build script and tried executing the build. I could observe that the time is consumed for the
[apt] [loading com/bea/control/interceptors/TransactionInterceptor.class(com/bea/control/interceptors:TransactionInterceptor.class)]
[apt] [loading java/util/SortedSet.class(java/util:SortedSet.class)]
[apt] [loading org/apache/commons/validator/ValidatorResults.class(l/commons/validator:ValidatorResults.class)]
which takes 3 mins each. Am not sure why this loads the dependent jars at the compile time. I think some where I have set the .jar files in the path.
In the log I could see there are aroud three pages of jar file path in the continuation to the resources.jar below.
[apt] [search path for class files: /apps/bea/platform/10.3.0/jdk160_05/jre/lib/resources.jar, ....
is there any issue setting the path.
Thanks for your Responce Konstantin,
My Application is not that big to take 17 mins to 18 mins for a particular module. In my application there are around 5 projects all the other 4 builds faster, only the web project takes time, because of the annotations. I feel there should be a way or there should be some unnecessary things making this delay. My application is weblogic portal application.