473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Strange OutOfMemory errors

We are seeing a particularly interesting behaviour on AIX 5.1 with
Java 1.3.1
(32-bit) and WAS 4.0.6.

stdout.txt indicates DB2 driver failed allocating memory:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0120E Memory
allocation
failure. SQLSTATE=HY001

stderr.txt indicates that Java heap is not yet exhausted which led me
to believe that the native heap might be the culprit:

<AF[182]: Allocation Failure. need 32 bytes, 158788 ms since last AF>
<AF[182]: managing allocation failure, action=1 (0/587659776)
(3145728/3145728)>
<GC(182): mark stack overflow[3]>
<GC(182): GC cycle started Fri Mar 5 14:20:02 2004
<GC(182): freed 177628592 bytes, 30% free (180774320/590805504), in
4968
ms>
<GC(182): mark: 4796 ms, sweep: 172 ms, compact: 0 ms>
<GC(182): refs: soft 0 (age >= 6), weak 5, final 1161, phantom 0>
<AF[182]: completed in 4970 ms>
java.lang.OutOfMemoryError

But then svmon output shows there is plenty memory avilable to most
segments
except 3
and 4:

-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit
Mthrd LPage
30132 java 354768 2274 12142 353631 N
Y N

Vsid Esid Type Description LPage Inuse Pin
Pgsp
Virtual
28baa 4 work shmat/mmap - 65492 0
59 65536
548f5 3 work shmat/mmap - 65170 0
90 65259
302cc 8 work shmat/mmap - 49933 0
5137 54590
24b69 7 work shmat/mmap - 49215 0
1996 50890
348ad 5 work shmat/mmap - 39205 0
3 39205
7bb9c 9 work shmat/mmap - 32464 0
2972 35024
7c33f a work shmat/mmap - 27327 0
951 28111
64019 d work shared library text - 8764 0
7 9540
0 0 work kernel seg - 4826 2169
916 4926
108a4 2 work process private - 107 2
3 110
5bf94 f work shared library data - 105 0
6 112
688ba 1 pers code,large file - 9 0
- -
47fd3 6 work shmat/mmap - 1 0
0 1
MAXDATA is 8, meaning there is 2GB of heap (Java + Native) and -Xmx is
1024m,
and there is 512MB of shared memory with Java heap being allocated
from native
heap.

Could it be that native heap is being restricted to segements 3 and 4
only? It
was not clear to me how the 2G total heap is partitioned among Java
and native
heap. I am not sure how I can see exactly where native heap is being
allocated.

Any help would be greatly appreciated
Nov 12 '05 #1
0 2657

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: TK2828 | last post by:
Hi all, I got System.OutOfMemory exception : not enough storage available to complete this operation, whenever I called ActiveDs.ADsSecurityUtilityClass.GetSecurityDescriptor function from my C#...
2
by: Roby Eisenbraun Martins | last post by:
Hi, My name is Roby Eisenbraun Martins, I am a C++, VB and NET developer. I am working with a NET 2002 project right now and I am receiving this uncommon "OutOfMemory" error message when I try...
3
by: Mike Schilling | last post by:
Instances of SystemOutOfMemoryException do not contain a stack trace. Easy test to verify this: class OOM { public static void Main() { try { Object arr = new Object; } catch...
1
by: Diablo | last post by:
Hi, I'm working on medium size project in C#. The project involves working with an Access database through the Jet engine. I have almost completed the project and now i am doing some testing....
2
by: Ricky Chan | last post by:
Windows Server 2003 with 2G Ram ,IIS6 -> I have enabled /3gb switch in boot.ini ! -> Machine.config set to 80% memory Limit However, It still throw outofmemory exception when loading large...
1
by: Ricky Chan | last post by:
In the production environment, it always occurs and the worker process did not recycle automatically. Therefore, it make the system service break to client. In development environment, we write...
3
by: Tim Frawley | last post by:
I am using a method that was described as the best for avoiding memory leaks when using MS Picture boxes. The main idea was to use a variable to load the image from file and then assign the...
6
by: Lenny Wintfeld | last post by:
Hi I'm attempting additions/changes to a Java program that (among other things) uses XSLT to transform a large (96 Mb) XML file. It runs fine on small XML files but generates OutOfMemory...
2
by: Peter S. | last post by:
I am pulling some data from a source via ODBC and placing the information in a DataSet. The first pull is very large but once that is complete I plan to do nightly pulls to get any new data that...
8
by: Mantorok | last post by:
Hi all I'm populating a DataTable with around 1,500,000 rows, the table contains 4 columns, 3 string columns and a decimal column. However, I keep getting OutOfMemory exceptions when my app...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.