I've developed a "batch process" which uses three different databases(two sql servers and one oracle). The application uses two different connection pools ; one for sql server and another one for oracle. The remaining sql server I've to connect using Data Source Name(DSN) defined in the data source. I am using sun's odbc-jdbc bridge mechanism/tool/driver to get connection and I am not using connection pool. Whenever need connection, the application will pass the dsn, user and password, and a new connection will be created. the application creates and uses 3 connections per minute in an average.
I am getting this error after sometimes 609th, 1222th, or 1069th connections for the same database. As soon the application gets this error, the JVM is killed.
PLEASE HELP ME and if you need more info. pl. let me know
# # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=176, tid=3652 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode) # Problematic frame: # C [ntdll.dll+0x1010] #
--------------- T H R E A D ---------------
Current thread (0x0aa98e10): JavaThread "Timer-2" [_thread_in_native, id=3652]
Other Threads: 0x00806558 VMThread [id=3956] 0x00812e18 WatcherThread [id=856]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap def new generation total 1792K, used 840K [0x02850000, 0x02a40000, 0x02d30000) eden space 1600K, 46% used [0x02850000, 0x0290a6c8, 0x029e0000) from space 192K, 49% used [0x02a10000, 0x02a27d28, 0x02a40000) to space 192K, 0% used [0x029e0000, 0x029e0000, 0x02a10000) tenured generation total 23176K, used 16150K [0x02d30000, 0x043d2000, 0x06850000) the space 23176K, 69% used [0x02d30000, 0x03cf5b08, 0x03cf5c00, 0x043d2000) compacting perm gen total 12288K, used 12128K [0x06850000, 0x07450000, 0x0a850000) the space 12288K, 98% used [0x06850000, 0x074280c0, 0x07428200, 0x07450000) No shared spaces configured.