> The java heap is only used for java object storage. > The remaining storage requirements are for the native code, which > includes many things: > > - the JVM itself > - any native libraries > - all of the native code from the java classes that are compiled by the > JIT > > The SDK Diagnostics guide has more information: > http://www.ibm.com/developerworks/java/jdk/diagnosis/60.html > thanks for your reply.
I am aware of that there are two types of heaps: the java-managed-heap and the native-heap. In contrast to the native-heap, the java-heap can be limitted with the -Xmx parameter. In my understandig the virtual storage is used by both type of heaps and the size of the virtual storage is limitted by the REGION parameter. Also I think, that virtual storage is backed up by real storage or by auxillary storage (paging). What I dont undestand is, why RMFMON and the Application Performance Analyzer tell me, that my application uses about 150M real storage (this is NOT the -verbose:gc output of the JVM!) and that no paging occured. In my understanding this implies, that all pages of virtual storage are backed up by real storage and this implies that about 150M virtual storage was used. But it seems, that a REGION of 256M is not enough. My assumption to explain this is the following: I know from Windows (and Unix-systems), that with VirtualAlloc you can commit or reserve pages in virtual storage. If you reserve pages, they are not allocated, i.e. they cannot be used to store data and are not backed up by physical memory; only if you commit the reserved pages, they are really allocoted and backed up by physical memory (or paged out to auxillary storage). Now I think on z/OS it works similar, so that we have the following: - The Java-VM reserves for the java-heap in one step pages in virtual storage (200M), but does not commit them all - Depending on the size of allocated java-objects, the pages are committed by JVM and so real storage is allocated step by step. But the JVM never requires 200M real storage in the java-heap. - The native heap reserves also pages in virtual storage, but in several steps. - The result is, that the native-heap cannot grow anymore, although there are enough uncommitted pages in virtual storage available. Ist this assumption correct (I have not much experience with z/OS yet)? Does the REGION parameter limit the nummer of "reserved" pages rather than "committed" pages? Thanks in advance! Regards, Arthur Brack > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > > On Tue, Nov 18, 2008 at 12:23 PM, Arthur Brack > <[EMAIL PROTECTED]> wrote: >> Hello everybody, >> >> I have a Java-Application running in JCL that reads and writes datasets >> in >> several threads using the JZOS library. >> >> The REGION Parameter of the step is set to 256M and the Java-GC-Heap is >> limitted with -Xmx to 200M. However, the application abends in some >> assembler routines while closing files due to an out-of-storage error >> (GETMAIN). If I limit the Java-GC-Heap to 180M and keep the REGION size, >> everything works fine. >> >> Then I have analyzed the java-application with RMFMON and IBM >> Application >> Performance Analyzer, and I could find out, that only about 150M real >> storage is used and no paging occured. But why do I get >> out-of-storage-errors, although I have a REGION size with 256M? Who is >> using the remaining 106M storage of the region?? >> >> >> Thanks in advance! >> >> Arthur Brack >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO >> Search the archives at http://bama.ua.edu/archives/ibm-main.html >> >> > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

