Big Process Size

Hi:
Can anyone provide ideas to reduce the process size of a simple java application running on Sun OS v5.8 box ? All this application does is call Thread.sleep(300*1000). "top" command reports that the total process size is 28M and resident memory size is 8M.
The following is one of the lines from running the "pmap" command on the process:
Address Kbytes Mapped File
FD40000 12880 dev:32,16 ino:389873
I am using the java version "1.3.0._02".
Thank you.

You could use the command line options to reduce the minimum heap size and the minimum stack size, but I doubt there will be any substantial gains.

Similar Messages

  • Process runs faster when executed independently, but runs slower when a parallel big process is running

    Hi,
    The issue is,  a process, say "A" is running fine on certain days. On some days there are additional processes running on the server. When these additional processes are running, "Process A" suffers performance issue.
    Interesting point is that, these additional processes were running since long time. But, earlier "Process A" was running fine even when these additional process were running. Suddenly from past 2 or 3 weeks there is performance issue in "Process
    A", when these additional process run.
    Note: Nothing has been modified for the process A.
    Process A is an SQL job which has SSIS Package and stored proc in different steps
    When multiple parallel processes are running, SSIS Package step suffers around 40% increase in execution time, where as stored procs have only 15-20% increase in execution time
    When Process A is executed while no other big processes are running, it's execution time is fine. From past few days, issue is only when, some other big parallel processes are running.
    Currently below is my analysis:
    Since Process A is running fine when it is executed independently, I assume there is no issue in this process.
    Since issue occurs when some other big process is running, when Process A is running, I believe it is DiskIO issue. Will the issue be resolved if RAM size is increased?
    Is there any way to check if RAM is being fully utilized by the server
    Is there any other possibility why there is a sudden dip in performance when parallel processes are running.
    Is there any possibility of having issues in additional processes. Incase if it has some issues, does it impact "Process A"
    Please let me know if you need any further information. Infact I am not able to diagnose what is the actual root cause for the performance issue in "Process A" as nothing has been modified.
    Also it would be very much helpful, if I get any idea on different ways in reaching the actual root cause of this performance issue.
    NOTE: This is a data warehouse
    Thanks,
    Raksha

    When a query has a parallel plan, it will in general try to grab all cores up to the maxdop setting, but then it often uses them inefficiently. 
    But in that case, there are better odds for the queries not battling on resources with each other!
    What Josh alludes is to the fact that SQL Server needs to partition the data, so that different partitions are processed on different cores. This partitioning is based on statistics, and the statistics may be out of date or not accurate enough. This may
    result in that the data is not partitioned proportionally, and some threads gets very little data to work with. Thus, these CPUs are still idle, so there may still be room for the two processes to run at full speed. (That is, full speed with the given plan,
    which is not the full speed, had the partitioning been accurate.)
    I mention this because you asked about parallelism, and many systems leave maxdop at its default setting of 0 (which means "go ahead and grab everything!") even though Microsoft recommends you set it to a different number depending on this and
    that.
    Since this is a data warehouse, Raksha should not tamper with "max degrees of parallelism", I think.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Keyboard viewer on my iMac (running Snow Leopard) recently has lost small size. Green " " button is just moving big keyboard size up. I would appreciate  a hint how to fix it. Alex

    Keyboard viewer on my iMac (running Snow Leopard) recently has lost small size. Green "+" button is just moving big keyboard size up. I would appreciate  a hint how to fix the problem. Alex

    You can resize the keyboard window, positioning the mouse pointer at the edge of the window, clicking and dragging to the desired size.

  • Why make process size so huge on WindowsXP?

    It seems like no matter how much memory my application uses. For example I can make a very simple app that just shows a JFrame. Runtime.getRuntime.totalMemory() claims that I am using 4MB, which seems like a lot for a simple frame window. TaskManager says that the application (JRE) is using 18MB. The JVM process size is over 4X larger. Is there anything that the developer can do to reduce the process size?
    I realize that the JRE is loading classes, spawning its own threads which require heap space and stack space, but the perception that most people get when looking at TaskManager is "Wow there must be a memory leak in that application it using 80MB." I know because my manager has said some close to that with a few expletives thrown in. This makes it hard for me to convince him that Java is a great choice for developing desktop applications.
    I think that instead of implementing new language features like auto-boxing and spending time developing Timbuktu language support, this needs to be addressed. Otherwise I think many desktop application developers will have the same difficulty and may forced to look at using C++ with GTK or Mono.

    Remember that a computer has much more memory at it's disposal than
    just RAM as modern operating system use swap memory to give greater memory. Have you tried
    running with the -client command line option.hm, my machine is 512MB and since I've started running eclipse there has been a definite improvement in disk thrashing (sporadically) when switching between applications..
    as a corporate user, i get to request a machine upgrade sometime next year (yay!) but someone pointed out to me that this isn't the typical scenario - but guess its just a few years away when this really doesn't matter so much
    I tried the -Xmx and -mx options. The process size is not affected, only Runtime.getRuntime().getMaxMemory() is affectedah, ok - must have been confused there..
    i found this bug:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4864304
    which seems to have become an umbrella bug for various swing memory issues - it does look like that have been real improvements in 1.5
    eg my own quick test - running SwingSet2 (java1.4 version) with both 1.4.2_04 and an early beta of 1.5 gives around a 10 - 15MB difference which does seem a real good result (its also faster..) but the absolute measurement is still around 60MB - i think maybe its something to do with font cacheing - not being able to rely on the underlying OS's font rendering capabilities
    another relevent thing could be jvm sharing:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4416624
    which i think the point about is that it mitigates the per-jvm memory costs - so you only take that hit once..

  • 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.

  • Maximum process size !

    Hi guys !
    What is the maximum virtual process size in Solaris 8 64 bit. I know in 32 bit Solaris it is 2GB.
    I'm troubleshooting a Java out of memory error.
    Thanks,
    - Solarised

    Extending the size of JRE Heap is not always the answer, you will need to start tuning your garbage collection to free off more memory on a more regular basis. Also I you are going to extend the size of your JRE Heap then ensure you get the minimum and maximum parameters correct, I would suggest you set them to the same size. Last point to remember, only calculate the size of your JRE Heap from the available memory, not the total memory.

  • Binary file is too big in size

    Hi,
    I wrote a simple VI to do playback of sound files and to record signals. It seems to do what I want (although I appreciate general feedback on good programming habits). The bigger issue I have is that the binary file it is saving is way too big in size. A few seconds of recording gives a few megabytes of data. Although I can open the binary file in matlab and analyze the data just fine, the big file size doesn't sound right. 
    Does anyone know why this is the case? I tried saving the data in something other than doubles, but it still gives large file sizes. Played around with the byte order too without much success. Any help is appreciated (LV 2009 file attached).
    Thanks.
    FA
    Solved!
    Go to Solution.
    Attachments:
    for_upload.vi ‏51 KB

    If your DAQ unit is 16 bit or less, simply store data as I16. you store data as DBL and that is 8 bytes pr number. It is no problem making wav files in I16 format. However wav files (in Labview at least) is not a compressed. So the file size will be much bigger than MP3 files that is a compressed file format.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Process Size Increase

    Hi,
    While stress testing our application we found increase in the process size. When we run our application for 5 hrs+ the size increases by 1MB+. We used the pmap -x , and it shows the increase in the heap.
    We used purify and sun workshop for finding the memory leak . Both of them show no memory leak. They do show increase in the MIU/Live memory. The way we do our test is in continous cycles. We do same set of operations in every cycle. When we started the application it was 30MB and when we did first cycle it increased to 68 MB. The heap increases by 1MB every 5hrs. After 250 cycles it has increased 10MB.
    Any idea why the heap keep on increasing? Is there any way to reclaim the memory?
    Thanks,
    Meena

    Hello,
    It seems that your program has some "memory overuse" problems.
    Memory overuse occurs when the program always allocates some new memory blocks on the heap (new, malloc) but never deletes them. Most of the time, these blocks are not "memory leaks" because the pointers on these blocks still exist, so that a garbage collector does not solve the issue.
    The classical example is a linked list that always grows...
    The only way to solve this, IMHO, is to track the memory in-use before and after processing.
    Using Rational purify, you can call purify_all_inuse() to see all blocks inuse or purify_new_inuse() to see the new allocated blocks. Do this before and after processing, then check what is different.
    Then you will have to understand why these blocks have been allocated, and then correct the problem.
    Good luck,

  • Process size growing

    Hi,
    We are running our application throught weblogic 5.1. If you observe the process size through top command one of the application process size is keep on growing and after some point of time it's reaching up to the memory max limit nad we need to restart the machine.
    So what we are thinking is there is a posibility of memory leaks in our source code. Before going to that i wanted to make sure that i can do any thing with weblogic configuration ..? can anybody help me in this regard ..? Please consider this issues as very urgent.
    Regards,
    Ganesh

    Consider forcing garbage collection within weblogic. You can see if
    you turn on verbosegc in your start script in weblogic. Monitor when
    garbage collection occurs.
    hope this helps
    abdul rahman
    Ganesh <[email protected]> wrote in message news:<3ea817b8$[email protected]>...
    Hi,
    We are running our application throught weblogic 5.1. If you observe the process size through top command one of the application process size is keep on growing and after some point of time it's reaching up to the memory max limit nad we need to restart the machine.
    So what we are thinking is there is a posibility of memory leaks in our source code. Before going to that i wanted to make sure that i can do any thing with weblogic configuration ..? can anybody help me in this regard ..? Please consider this issues as very urgent.
    Regards,
    Ganesh

  • Reducing process size on XP

    Hi,
    I am running 10.2 EE on my desktop, Windows XP sp2 (Athlon X2 with 1Gb ram). I only use the db for local testing with very little data and load. I'd like to reduce the process size a bit if possible. Right now it shows Mem Usage between 200mb and 250Mb, and VM size hovers around 350mb - 370Mb.
    Which parameters in which files should I be looking at to reduce this somewhat?
    thanks!

    What do you mean by process size here?
    The amount of memory used by oracle based on the init<SID>.ora parameter.
    from SQL plus
    Show SGA will give the memory occupied by oracle process.
    If you want you can reduce the Memory size.

  • Process size

    Hi all,
    I ran java program on HP-UX. I set maximum heap size to 128MB.
    The point is I used top command to see process size.
    Why the process size can grow up to 700MB?
    How come? Where is the memory come from?
    Thank you

    this sounds strange, i think i've seen the java.exe process size use much more memory than the -mx limit would suggest when memory mapping files using the nio libraries - does your code use the nio libraries?
    asjf

  • Error while processing SHPMNT in using big pack size 20 but not if 1

    Hi Experts,
    I am trying to to process status 64 SHPMNT IDocs via background job using program RBDAPP01.
    When I try to use Pack Size 20 (minimum preferred/suggested by SAP for better performance), I am encountering the status 54 error message "Processing terminated because not required or possible" when the SHPMNT IDocs are pointing to the same Shipment document.
    According to the error message:
    Processing of this IDoc is terminated because it is unnecessary or impossible. Reasons for termination may include:
    1. The IDoc appears twice in the IDoc packet you just processed
    2. The data included in the IDoc you entered does not provide unique identification of the application document concerned. For example, you enter the primary identification using field EXTI1. There could be two application documents with the same 'external identification 1'. In this case, there would be no way to tell which document should be changed.
    So, I got the idea of trying Pack Size 1 and it worked!
    So in conclusion, SAP (by default) does not allow processing of multiple SHPMNT IDocs referring to the same Shipment document in one packet.
    Is it possible to disable/turn off this check so that SHPMNT IDocs will be processed using Pack Size 20 even if they are referring to the same Shipment?
    Thanks and Regards,
    Ruix

    Hi Ruix,
    We are running to exactly similar problem, Can you please share how you have resolved this issue?
    Many thanks in advance!!!!
    Regards,
    Kumar

  • Too Big Project Size?

    How big is too big for projects? What are your average project sizes?
    Having very sticky and sluggish movement in current project and noticed it was over 40MB. Didn't seem so huge at first but then I noticed most other projects I have are under and around 10. Is the project just too big? Nothing extraordinary or strange about the project. The sluggishness is primarily when scrubbing through primary cut/sequence. Only a 2 min sequence. If Premiere can't handle two minute sequence how are they cutting features with it?
    Anyone else have this problem or notice anything like this with larger projects?

    I was referring the preview file format.  Currently, we're editing with ProRes LT Quicktimes and setting the preview file format to reflect that (attached).  However, the MPEG I-Frame seems to be the default in Premiere.  Is that more stable?
    However, is there a better format/codec for Premiere?  We always cut in ProRes on FCP 7, but I'm not opposed to something different (we run on Mac).
    Also, I removed all warp stabilizers from my project and it significantly decreased project size.  Unfortunately, the project is still sluggish.  Feeling there is some type of corruption.
    Thanks Mark!

  • Can I output to my TV with big frame sizes

    Hi guys..
    I always though I could store a video on the ipod as frame size 720 by 576 and when outputed to the tv, it play at this frame size. When played on my ipod, it downsizes it to fit. Is this right?
    Basically I just want my home video dvds, when converted on \to the ipod, to fit the whole screen of my tv in the same quality it is when I insert my home videos into the dvd player, is this possible.

    No, you cannot store full-size video on an iPod. It supports 320x240 in H264 and 480x480 in MPEG, or any other resolution whose total pixel count is lower than the above. The iPod's processor simply cannot handle anything bigger and the battery would drain too fast if anything bigger was used.
    You can't get the same quality as DVD (as I said in the other post), but it looks pretty good.
    If you import your video at the highest bitrate possible and at 320x240 (the iPod's screen resolution), there won't be much (if any) noticeable difference in quality. What you will see, though, is less detail, especially in smaller or distant objects in the video. For example, if you are watching a video that is zooming out from a scene, you will notice that detail disappears sooner than if you watched it on a DVD. Also, if there are immobile, straight lines at an angle in a video (especially a cartoon where the lines are very straight) then you will notice some small steps, which are a result of the video's pixels being stretched to 2x2 pixel squares. Other than that, there aren't many other problems with video quality that I have seen, as long as the bitrate is kept high.
    Basically, the iPod is a very mobile video player. Because it's so small and because its processor is limited in power, it cannot handle full-resolution video. It will look good on a TV that is approx 30 inches or smaller, but don't expect anything spectacular on a big-screen TV. If you're using a large TV (bigger than 30 inches) then you should really be using a DVD, not an iPod.
    So, if you want to show your friends some home video on an average size TV then the iPod is fine in terms of quality.

  • N8 contacts photos problem - big image size

    So I attached photos to my contacts using ovi suite. I used various size photos, some from camera, some from FB, some from somewhere else. But I have few problems:
    First - photos appear correct in phone book, but then I make or receive call image is zoomed in and I usually see callers chest, shoulder or whatever else, but not face, this also reduce image quality for some reason. And all images I attached is at least 640x480.
    Second - apparently ovi suite doesn't resize images and just save images in original size. This means, if i take photo of my friend and then attach it to his contact, it will take up 1MB or more depending on camera.
    And we come to third - there is no indication of resolution used in contacts photos, so I can't even resize all images manually (despite the fact, that this would be absurd anyway).
    Conclusion: it take a bit of time for images to load in contact book, because of bigger resolution, than required; no idea what that resolution is; photos are big enough but still got zoomed in during calls.
    Please if someone knows the solution, tell me. I've been googling around for about two weeks, with no luck..
    Solved!
    Go to Solution.

    I tried what Symbian_fan suggested and it works fine. However, images in contacts still doesn't load instantly (probably firmware problem), but size reduced from 1MB to 250KB for for 24 images I experimented on. If anyone wants to modify photos in computer (what I suggest if you have many contacts), N8 uses 290x290 resolution for images of contacts.
    On the other hand, I still haven't tested adding 290x290 photos via Ovi Suite. There is posibility that it still can mess up images. I'll probably try latter and report back.

Maybe you are looking for

  • Hebrew versions of photoshop-upgrading from xp to win 7

    my GF's daughter is studying photography in high school and they all bought cs3. the UI is in hebrew. shes using xp. the computer is very slow. im upgrading my pc and want to pass my hardware to her and add an ssd and pgrade XP to win 7 pro. so some

  • Export Data

    Hi, While saving the Billing document of Export order i am getting error "Export data missing" because of this accounting documents are not generating I want to know that what export data we need to maintain? Regards, Rahul

  • How to increase line item in billing document

    Hi I know that maximum line item in billing is 999, but my requirement is to increase the line item number may be up to 9999. Is there any way Kindly replay. Thanks in advance Vinod

  • One or more cartidges appears to be damaged How can I tell which one?

    I just had my 4 cartidges refilled at Cosco.  Came home and installed them and get the One or more cartidges appears to be damaged message.  Looked at the little example on the printer screen and it looked like it was telling me the Yellow was the on

  • Illegible Panels

    Hi, My set up for the PC must be wrong - maybe display or someting. I've tried screen size etc. but the probelm I'm having is once in Fireworks or Dreamweaver, you can't actually read the text/font on each panel- for example "Optimise" or "Stroke" pa