OS Resident Size for JVM grows without bound

Can anyone think of an explanation for the following:
JProfiler shows my java application managing its memory properly, and the JVM reports the max heap memory as 80MB throughout the life of the application. HOWEVER, the operating system task manager (on BOTH Mac and Windows) shows the resident size of the Java process continually growing (starting at ~250MB and upwards).
How can the OS resident size grow without the JVM reporting that it's growing? I'm puzzled.
If it makes any difference, this application does a lot of socket I/O (using conventional non-NIO Socket), and it continually updates JTable(s) (it is showing live market quotes).
(Using latest versions of Java 1.6 available on both Mac/Windows).
Thank You,
Eric
Edited by: oppositereaction on Jan 24, 2009 12:37 AM

oppositereaction wrote:
I think there are 24 threads in the app. Thank you for that suggestion, but I would very much doubt it is the number of threads. The number of threads stays constant, but the resident memory (as reported by the operating system) slowly rises without bound.
If it was in fact doing that then you would get an out of memory exception.
I suggest you might want to read up on the OS tools that you are using to monitor the memory.

Similar Messages

  • Upto how much I can set maximum Heap size for jvm?

    I am running application on 8GB RAM Windows 64 bits machine.
    I am running out of OutOfMemory (Heap Space). I want to increase the Heap Size for my jvm.
    But can anybody please tell me what is the limit by which I can set the maximum size for heap?
    Thanks in Advance,
    Jenish

    Max allowed memory per process is 2 raised to the 64th power. What maximum memory you can set depends on the memory available
    for your application. You may be able to set more than 8GB ram then it will use the swap space and it will slow down your application
    performance. So try different memory size and see which one works best for your application.

  • Reducing image file size for web use without pixelation

    Can anyone help me figure out how to best reduce images for fast web loading (in slideshows in Muse). I have done the save for web in PS and they are super pixelated now. The only versions that do not lose quality are the original size and they are huge files. Any help is appreciated.
    Also can anyone tell me how big each image should be, what is considered a too big size (kb) for web images? Thanks Hillary

    The settings I used were in the save for web panel and I saved the image as "medium" and the quality was 30, optimized was checked and it was scaled down to 16kb instead of 700kb. Is there a guideline as to how large in kb an image should be for good loading, it seems like with faster internet speeds we can go a bit larger for asset size. Is it OK to have an image as 65 kb if it is quite large (8 inched wide)?
    I think I solved the problem. I just went in and saved the images as larger quality. I hope it does not slow things down too much. Any advice would help.

  • EntityCache grows without bounds?

    We are seeing a situation where the number of beans in
    the entity bean cache seems to continually grow over the
    course of a couple days, and never seems to get any smaller.
    This eventually results in an out of memory on the server.
    I saw some reference to idle-timeout-seconds, but the
    docs say it only applies to session beans, not entity beans.
    Is there any way to tell WLS to remove those beans from its
    cache?
    Thanks!
    : jay

    We are using wlstat to monitor the number of beans in the
    cache; in particular, its EAct count, which translates to
    the sum of EJBCacheRuntimeMBean#getCachedBeansCurrentCount
    for each entity bean.
    We have no hung transactions, and our transactions are
    typically under a few seconds.
    : jay

  • Memory growing without bound - no application memory

    I've watched iPhoto growing in the activity monitor .. 5Gb .. 10Gb .. 30Gb. Then I get the message that there is no application memory left.
    I says that it is recreating thumbnails.
    I've restarted it with ctrl-cmd and told it to rebuild the database - but it does exactly the same thing.

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Post back with the result.

  • How to increase JVM Process size for WebLogic running SOA Applications.

    Hi,
    I believe 32 Bit OS can address up to 4GB memory so theoretically 32 Bit JVM can use 4GB but practical convention is 2GB as other 2GB is used by OS itself and also this default JVM Process size is set somewhere and I also believe that if JVM is 32 bit on 64Bit OS even though JVM will run on 32Bit Virtual Machine so JVM does not know that it is 64Bit OS in that case again it can use max Process default size up to 2GB.
    And for 64Bit JVM, I can allocate more than 4GB depend on my available RAM size to Xmx, MaxPermSize parameters in java.exe file and after that I can set the same value in “setSOADomainEnv.cmd” or to “setDomainEnv.cmd” file.
    But I am 99% sure by just assigning more memory value to Xmx, MaxPermSize in “setSOADomainEnv.cmd” file only won’t work (not setting Xmx in java.exe), if it would have worked then in my case when I was assigning 1536 to Xmx in “setSOADomainEnv.cmd” file then why it was showing out of memory error. I think that is because it was only taking default 2GB for my 32 Bit JVM not considering 3GB or 4GB. So i think i have to change default memory size what JVM can use (<http://www.wikihow.com/Increase-Java-Memory-in-Windows-7> but i am using windows 8 so for that I don’t know the option to change this default Process Size)
    I also believe that first JVM start and before start it check how much memory it can use from it’s own –Xmx parameter in some ware configuration or java.exe file and after that it allocate that much size of JVM Process Memory in RAM then after it loads Weblogic or Java Applications in its (Heap + Non-heap + Native Area) which are parts of JVM Process memory
    I read post on :< http://stackoverflow.com/questions/3143579/how-can-jvm-use-more-than-4gb-of-memory > and < http://alvinalexander.com/blog/post/java/java-xmx-xms-memory-heap-size-control >
    All used  : 
    java -Xmx64m -classpath ".:${THE_CLASSPATH}" ${PROGRAM_NAME}
    java –Xmx6g     //command which will call java/JVM interpreter which will hold –Xmx parameter to set Heap size for JVM
                                    before JVM comes in memory (JVM process memory)
    now my question is can I manually open any configuration file or java.exe same like “setSOADomainEnv.cmd” or “setDomainEnv.cmd” (I know since java.exe is exe I can’t open simply but I want similar work around)
    so that I don’t need to type java –Xmx6g every time when I run weblogic (and then later I can change weblogic “setDomainEnv.cmd” Xmx and PermSize to more than default size 4GB to 5GB or 6GB in the case of 64Bit OS)
    Please correct me if I am wrong in my understanding.
    Thanks.

    These days the VM will detect a "server" machine and set up the memory appropriate for that.
    You can create a simple java console application and have it print the memory settings (find the appropriate java class fort that.)
    There is of course the possibility that your application is running out of memory because it is doing something wrong and not because the VM doesn't have enough memory.  You can force that in a test setup by LOWERING the maximum amount of memory and thus making it more likely that an out of memory exception will occur.

  • Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Just save the document to a new jpeg file name using a lower quality setting or re-size the image down in  size the save a high quality smaller new jpeg image.

  • Maximum heap size for 64bit JVM

    Hi,
    I am trying to set the maximum heap size for a java process in a 64bit JVM . I am not able to set more then 3G
    command line config:
    java -Xms64m -Xmx3g -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8000 com.superpages.puboptions.CampaignFeedStarter >> publisher.out 2>&1 &
    Hardware / software configs
    *$uname -a*
    SunOS labsbear 5.9 Generic_122300-19 sun4u sparc SUNW,Sun-Fire-V440
    *16GB total physical memory*
    *4 processor machine*
    *64 bit JVM*
    JDK1.6
    where is this limitation coming from. How to set the heap size to 6g.
    Thanks for your time
    Meena

    You need to use the -d64 switch to request the 64-bit JVM. E.g.,$ java -showversion -Xmx6g HelloWorld
    Invalid maximum heap size: -Xmx6g
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    $ java -showversion -d64 -Xmx6g HelloWorld
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
    Hello world!

  • Stack size for native thread attaching to JVM

    All:
    I have a native thread (see below, FailoverCallbackThread) that attaches to the JVM and does a Java call through JNI. The stack size for the native thread is 256KB.
    at psiUserStackBangNow+112()@0x20000000007a96d0
    at psiGuessUserStackBounds+320()@0x20000000007a8940
    at psiGuessStackBounds+48()@0x20000000007a8f60
    at psiGetPlatformStackInfo+336()@0x20000000007a9110
    at psiGetStackInfo+160()@0x20000000007a8b40
    at psSetupStackInfo+48()@0x20000000007a5e00
    at vmtiAttachToVMThread+208()@0x20000000007c88b0
    at tsAttachCurrentThread+896()@0x20000000007ca500
    at attachThread+304()@0x2000000000751940
    at genericACFConnectionCallback+400(JdbcOdbc.c:4624)@0x104b1bc10
    at FailoverCallbackThread+512(vocctx.cpp:688)@0x104b8ddc0
    at start_thread+352()@0x20000000001457f0
    at __clone2+208()@0x200000000030b9f0
    This causes stack overflow in Oracle JRockit JVM. (It does not cause overflow with Oracle Sun JDK.) Is there a recommended stack size for this use case for JRockit? Is there a way to compute it roughly?
    Platform Itanium 64 (linux)]
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    BEA JRockit(R) (build R26.4.0-63-63688-1.5.0_06-20060626-2259-linux-ia64, )
    mp

    How do I found default heap size, stack size for the
    thread, number of threads per jvm/process supported ?The threads is OS, OS install and jvm version specific. That information is also not useful. If you create the maximum number of threads that your application can create you will run out of memory. Threads require memory. And it is unlikely to run very well either.
    The default heap size and stack size are documented in the javadocs that explain the tools that come with the sun jdk.
    and how the above things will vary for each OS and how
    do I found ? Threads vary by OS, and OS install. The others do not (at least not with the sun jvm.)
    If I get "OutOfMemoryError: Unable to create new native thread" Most of the time it indicates a design problem in your code. At the very lease, you should consider using a thread pool instead.
    I found in one forum, in linux you can create maximum
    of 894 threads. Is it true ?Seems high since in linux each thread is a new process, but it could be.

  • Investigation on JVM crash without core dump (by JIT compiler)

    Hi, All
    I posted "JVM crash without core dump due to CompilerThread1" couple months ago.
    http://forum.java.sun.com/thread.jspa?threadID=5253434
    I would like show what we found, and ask couple questions
    1) The reason of JVM crash is "CompilerThread0/1 wanted to allocate more native memory and eventually exceeded the limit of 32-bit Linux (on Redhat, the limit of VIRT is 3G)
    2) After we lower the heap size (to reduce process size) and added process size monitor (track process size every minute) and JIT compilation log (-XX:+PrintCompilation),
    We found sometimes JVM process jumped more than 800M when compiling one method. with the following log
    Total time for which application threads were stopped: 0.1997400 seconds
    5828 xxx.xxx.SomeClass::someMethod (1507 bytes)
    5828 COMPILE SKIPPED: out of nodes during split (not retryable)
    549002.449: [GC [PSYoungGen: 517897K->28390K(551296K)] 942855K->453348K(1229952K), 0.0726350 secs]
    if we saw "COMPILE SKIPPED: out of nodes during split (not retryable)", the process size of JVM (VIRT/RES) always jumped 800M~1000M, and sometimes the memory get reverted in 30mins to couple hours, and sometimes it lasted forever. (so before we have larger footprint, this jump will kill JVM, right now, if the jump lasts forever, any more allocation on top of it also can kill jvm (much rare))
    3) This is definitely a bug of JVM, because
    it only happened on server mode, not client mode
    it is random, that method can be compiled success on other JVM or next restart (we have 20 JVMs)
    the method is not that complicate, like 100 lines, (bigger method gets compiled success)
    this only happen on PROD environment, we can't reproduce it locally or QA (the method is always compiled success)
    It mostly like under some condition (maybe node space is not enough), to compile that method will trigger JVM trying to allocate much more native memory.
    4) We are going to disable this method by ".hotspot_compiler" to fix it, right now we are using lower footprint, JVM dies rarely.
    +To understand more about this, I have some questions about JIT compiling+
    I saw same method are compiled more than once from JIT log, like the method caused our problem, it only happens on 2nd time compilation.
    Is it that JIT compiler will recompile the method with deeper optimization level some time, and more optimization it uses, the more memory it requires?
    (like gcc has -O2 -O3)
    Thanks!
    Neo

    Today, one JVM crashed again, with
    {Heap before gc invocations=4188:
    PSYoungGen      total 540864K, used 487958K [0x8ba50000, 0xb1250000, 0xb1250000)
      eden space 467328K, 100% used [0x8ba50000,0xa82b0000,0xa82b0000)
      from space 73536K, 28% used [0xa82b0000,0xa96d5850,0xaca80000)
      to   space 71680K, 0% used [0xacc50000,0xacc50000,0xb1250000)
    ParOldGen       total 1024000K, used 493477K [0x4d250000, 0x8ba50000, 0x8ba50000)
      object space 1024000K, 48% used [0x4d250000,0x6b439610,0x8ba50000)
    PSPermGen       total 101760K, used 101240K [0x2d250000, 0x335b0000, 0x4d250000)
      object space 101760K, 99% used [0x2d250000,0x3352e1f8,0x335b0000)
    405290.711: [GC [PSYoungGen: 487958K->17397K(544192K)] 981435K->518248K(1568192K), 0.0769350 secs]
    Heap after gc invocations=4188:
    PSYoungGen total 544192K, used 17397K [0x8ba50000, 0xb1250000, 0xb1250000)
    eden space 472512K, 0% used [0x8ba50000,0x8ba50000,0xa87c0000)
    from space 71680K, 24% used [0xacc50000,0xadd4d480,0xb1250000)
    to space 70208K, 0% used [0xa87c0000,0xa87c0000,0xacc50000)
    ParOldGen total 1024000K, used 500851K [0x4d250000, 0x8ba50000, 0x8ba50000)
    object space 1024000K, 48% used [0x4d250000,0x6bb6cf70,0x8ba50000)
    PSPermGen total 101760K, used 101240K [0x2d250000, 0x335b0000, 0x4d250000)
    object space 101760K, 99% used [0x2d250000,0x3352e1f8,0x335b0000)
    Total time for which application threads were stopped: 0.0779620 seconds
    Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 4522768 bytes for Chunk::new. Out of swap space?

  • Maximum heap size of JVM

    hi,
    I need to set the maximum heap size of the JVM. I know that I can do
    it for a single run by saying:
    java -Xmx75M example.class
    But how do I make the JVM use this maximum heap size for all its
    runs, without specifying '-Xmx75M' in every run.
    I need this because I am using my system as a server for JSP web
    site. For that site if a very simple query is given such as 'a' in title, as many as 6000
    records as retrieved from my Filemaker Databases and the java
    ResultSet object is not able to handle those records. The system is
    then throwing an exception and error message 'Host not found' is
    sent back to the client's browser. As far as I know, Filemaker does
    not support 'LIMIT' keyword in queries.
    So please tell me how can I rectify that problem.
    Thanks in advance,
    niranjan maturi

    hi,
    I tried setting TOMCAT_OPTS. The maximum I could go in my system is 1300M
    i.e. set TOMCAT_OPTS="-DXmx=1300m".
    Still I am having the problem that when some 5000 records are fetched from the database, the ResultSet object is not able to handle them. It is able to handle upto 2000 records. I am using windows2000, jdk1.3.2 and Filemaker Pro 5.0 databases.
    I tried to set the maximum number of records that can be retrieved to 2000 so that the problem will be solved. But I am not able to set that as well. I did:
    Class.forName("com.fmi.jdbc.JdbcDriver").newInstance();
    Connection con = DriverManager.getConnection("standard statement");
    PreparedStatement pstmt = con.prepareStatement("select id, pubyear, Checkedoutby, >>callnumber from mprrc_materials");
    pstmt.setFetchSize(2000);
    ResultSet rs3 = pstmt.executeQuery();Its giving the error:
    java.lang.AbstractMethodError at that setFetchSize() statement.
    I guess the JDBC driver provided by Filemaker Pro does not support that. So what can be done to solve the problem.
    Thanks,
    Niranjan Maturi

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • Limitation on Service size for deploying

    Is there any limitation on Service size for deploying? The size of my service is 5MB approx. and I am not able to migrate it through Catalog deployer as well as Exporting and Importing file.

    There is no limit as such. The only limit imposed depends on the heap allocated for
              the JVM.
              Nitesh wrote:
              > Hi.
              >
              > Is there a limitation on the session size for a clustered environment. i'm not
              > sure whether its true or not. can anyone please clarify. Also is it for the entire
              > session object or per user.
              >
              > Thanks
              >
              > Nitesh
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • Can I tell the file size of my .folio without an iPad?

    I've been searching everywhere for this answer, but alas, it has escaped me. How can I tell the file size of my .folio? I'm sure this is really simple. I'd like to be able to see the final file size of my folio without an iPad.

    I think if you log into acrobat.com, you should see your folio there, too.
    You see the article sizes and may be able to add them together.
    Be catuous, editing your folio through acrobat.com might break it.
    —Johannes
    (mobil gesendet)
    Am 13.12.2011 20:33 schrieb "Sheenz1701" <[email protected]>:
       Can I tell the file size of my .folio without an iPad?  created by
    Sheenz1701 <http://forums.adobe.com/people/Sheenz1701> in *Digital
    Publishing Suite* - View the full discussion<http://forums.adobe.com/message/4082274#4082274>

  • How to change font size for tracks in Songs view, iTunes 11?

    I'm wondering which field in TextStyles.plist for the new iTunes 11 (I've gotten rid of Helvetica for Lucida Grande thanks to another forum on here!) - controls the font size for track title, time, artist, album, etc. as seen here - I would like to have it smaller, and have been playing around on several forums and not found the magical field to get that exact thing smaller. Many thanks in advance.

    You're going to love me forever:
    <key>9002</key>
    <dict>
    <key>- loc hint -</key>
    <string>List Contents (Small)</string>
    <key>font</key>
    <string>HelveticaNeue</string>
    <key>size</key>
    <integer>12</integer>
    </dict>
    It's that interger "12" that's determines the size. Adjust it until you're happy—provided that it's an interger.
    I actually go with "HelveticaNeue" with a size of 11. I like to see lots of tabular information at once, horizontally, without changing my resolution… within reason, e.g. Fiona Apple album titles still have ellipses.
    An unfortunate aspect to this is that the row height isn't altered unless the font size specified is greater than 12—the font takes the row height along for the ride when it's bigger, but the row doesn't come along for the ride when the font gets smaller. It's likely you could change the minimum row height to be lower, in some other plist—search for something like "list contents (small)" or "list (small)" or whatever—but I don't know where that would be found, or if it could be found at all.
    Nonetheless, this should address your query.

Maybe you are looking for

  • Re-install of Oracle HTTP Server in a configured environment

    OS: Oracle Enterprise Linux 5.5 64 bit Hyperion: v11.1.2.0 Web Server1: SharedServices, Calc, EAS, APS, Planning installed and configured. They are working from URL and clients. We ran into issues with Workspace configuration. If we have to re-instal

  • Adobe Acrobat X Standard Install Question

    I purchased Adobe Acrobat X Standard with my computer from Dell.  I have the serial number.  How do I download the software??

  • Re: loop condition using length

    Hi friends, in a loop condition i am using below coding. LOOP AT I_FORM1 INTO W_FORM1. A = STRLEN( W_FORM1-LOTNO ). LOOP AT I_AUFM INTO W_AUFM WHERE CHARG+0(A) = W_FORM1-LOTNO. ENDLOOP. ENDLOOP. But coming error is The length specification "(A)" is n

  • Mass change of po message error

    Dear Experts. I am trying to change the WBS in purchase orders.(BUS2012). However when i execute the system gives me that no data has changed. the system shows that no data has changed as below. Kindly assist. Thanks. Carol.

  • Duplicate pages

    Has anyone figured out how to insert duplicate pages in iweb yet? I do not want to keep generating pages from scratch if at all possible