Jacob Tom

Greenhorn
+ Follow
since Mar 06, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jacob Tom

Thanks AnandRaj.

-XXdumpFullState - I think I would have to run it in default mode of "large" to get heap dump. As per documentation, it needs considerable disk space. Heap size for the JVM process is 1 GB. Would the size of the generated heap dump be around 1 GB?

Also this option is said to create dump only when "JVM" crashes. To use -XXdumpFullState then, would I also have to set "-XX:+CrashOnOutOfMemoryError" or "-XX:+ExitOnOutOfMemoryError"? Niether of the these 2 options seem to be supported for R27.1.

Regards,
Jacob
6 years ago
Hi,

We are getting

java.lang.outofmemory

issues in our production application running on BEA Jrockit JVM Release 27. This release of the JVM does not seem to support heap diagnostics options which can be used to generate heap dumps on occurrence of outofmemory error.

Could anyone please advise what other options can be used to generate heap dump for applications running on Jrockit R27 on occurrence of

java.lang.outofmemory

error?

Jrockit provides JRCMD utility which generates a heap diagnostics report but that is not of the same format as the typical HPROF format of heap dumps.

Regards,
Jacob
6 years ago
Thanks Bill for reply.

Weblogic is issuing graceful shutdown. Please find below class that extends "ContextLoaderListener". Is there anything I need to do more in the "contextDestroyed" method to ensure that weblogic waits till all my currently running jobs are finished before shutting down?



Regards,
Jacob
6 years ago
Hi,

As per the documentation of property "waitForJobsToCompleteOnShutdown" within "org.springframework.scheduling.quartz.SchedulerFactoryBean", Spring should wait for running jobs to complete before shutdown.

I have configured the scheduler in spring configuration xml as shown below -


I also have configured correponding trigger and job. Then I am scheduling the job using the scheduler.

This Spring module is deployed on weblogic 8.1.

When a 'shutdown' is issued from weblogic, it appears that weblogic does not wait for the spring job to complete before shutdown even though 'waitForJobsToCompleteOnShutdown' is set to TRUE.

Could you please advice what could be wrong?

Please let me know if you need any more details.

Regards,
Jacob
6 years ago
Hi,

Please find my code components below -

1) Spring config xml contents -


2) Test Java class -




I have following 3 methods -

1) insertUsers (List, TransactionTemplate)
2) insertUsers (List)
3) deleteUsers (List)

The first "insertUsers" method encompasses the call to "jdbcTemplate.batchUpdate" within the TransactionTemplate but in
case of second "insertUsers" method, the call to the method is encompassed within the TransactionTemplate as can be seen
in the "main" method.

In case of any exception, the first "insertUsers" method rollsback all INSERTS while second "insertUsers" method
does not i.e. all INSERTS done before exception get commited.

I am using JDBCTemplate.batchUpdate(String sql, BatchPreparedStatementSetter setter) to perform a batch INSERT operation in Oracle 11g database.
I believe the connection has 'autocommit' set to true by default.

Could you please advice the reason for the 2 behaviours?

Regards,
Jacob
6 years ago