How to Maximize Memory usage for JDK 6 on Solaris 10.

Hi there,
I deployed jdk 6 & Tomcat 6 running on Solaris 10 with 8GB of RAM Sun Fire x64 x4100 M2 m/c.
Its relatively fast. However, the java could allowed me to set the Max Java OPT to only 3GB. I don't understand and there isn't any extra applications. All are prior Solaris 10.
Java will not be able to start if I set more than -J-Xmx3072m.
Appreciate your advise and expertise.
regards,
jose(airqq)

Hello Neville:
I seem to be coming off as negative - not my usual approach.  However.......
I am a retired webmaster and don't have Lion but I am impressed by your tip. Well written and researched. I think we should all do our bit to educate and encourage others to open applications and use the Terminal.
a different point of view from someone who has been posting in these forums for many years.
Almost all of the people who seek help here are not:
1.  Retired webmasters.
2.  Know anything about the arcane terminal commands and, more importantly, how much damage they can cause their system by a missing space or character.  Apple has spent a lot of time to develop OS X to a point where people do not need to learn about or understand Unix-like command language.
I salute people who are technical enough to use terminal commands.  It is, however, IMHO, a real disservice to suggest to non-tecchie people that it is ever necessary (or desirable) to operate at that level.
Having said all that, I respect your comment and point of view.   I would reiterate, however, that solving non-existent problems is a waste of time.  By non-existent, I mean that if there are no performance problems, it is irrelevant how much memory a program uses.  My current base-level iMac has 4 GB of memory and a Terabyte of HD space.
Barry
Message was edited by: Barry Hemphill

Similar Messages

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

  • How to specify maximum memory usage for Java VM in Tomcat?

    Does any one know how to setup memory usage for Java VM, such as "-Xmx256m" parameter, in Tomcat?
    I'm using Tomcat 3.x in Apache web server on Sun Solaris platform. I already tried to add the following line into tomcat.properties, like:
    wrapper.bin.parameters=-Xmx512m
    However, it seems to me that this doesn't work. So, how about if my servlet will consume a large amount of memory that exceeds the default 64M memory boundary of Java VM?
    Any idea will be appreciated.
    Haohua

    With some help we found the fix. You have to set the -Xms and -Xmx at installation time when you install Tomcat 4.x as a service. Services do not read system variables. Go to the command prompt in windows, and in the directory where tomcat.exe resides, type "tomcat.exe /?". You will see jvm_options as part of the installation. Put the -Xms and -Xmx variables in the proper place during the install and it will work.
    If you can't uninstall and reinstall, you can apply this registry hack that dfortae sent to me on another thread.
    =-=-=-=-=-=
    You can change the parameters in the Windows registry. If your service name is "Apache Tomcat" The location is:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat\Parameters
    Change the JVM Option Count value to the new value with the number of parameters it will now have. In my case, I added two parameters -Xms100m and -Xmx256m and it was 3 before so I bumped it to 5.
    Then I created two more String values. I called the first one I added 'JVM Option Number 4' and the second 'JVM Option Number 5'. Then I set the value inside each. The first one I set to '-Xms100m' and the second I set to '-Xmx256m'. Then I restarted Tomcat and observed when I did big processing the memory limit was now 256 MB, so it worked. Hope this helps!
    =-=-=-=-=
    I tried this and it worked. I did not want to have to go through the whole reinstallation process, so this was best for me.
    Thanks to all who helped on this.

  • How to find out CPU and memory usage for an instance?

    Hi DBA Gurus,
    How to find out CPU usage and memory usage for an instance?
    Any information is appreciated!
    Thank you!
    Robert

    you can calculate cpu usage by adding fallowing three factors which you can get from v$sysstat
    1. Parse CPU time : This represents the percentage of CPU time spent parsing SQL statements. Parse time CPU can be a strong indication that an application has not been well tuned. High parse time CPU usually indicates that the application may be spending too much time opening and closing cursors or is not using bind variables.
    2. Recursive CPU time : Sometimes, to execute a SQL statement issued by a user, the Oracle Server must issue additional statements. Such statements are called recursive calls or recursive SQL statements. For example, if you insert a row into a table that does not have enough space to hold that row, the Oracle Server makes recursive calls to allocate the space dynamically if dictionary managed tablespaces are being used.
    Recursive calls are also generated due to the inavailability of dictionary info in the dictionary cache, firing of database triggers, execution of DDL, execution of SQL within PL/SQL blocks, functions or stored procedures and enforcement of referential integrity constraints
    3. Other CPU time : This represents the percentage of time spent looking for buffers, fetching rows or index keys, etc. Generally, \"Other\" CPU should represent the highest percentage of CPU time out of the total CPU time used.
    total memory used you can calculate adding
    total_agrigate_area+sga
    memory usage on os level you can know by fallowing commands
    vmstat 5 20 depending upon os

  • How to minimize memory usage with VM settings

    Using JDK 1.4.2, I am trying to minimize the memory usage of my application.
    Our GUI application consumes about ~20MB of heap space during normal operation, but it can easily grow to 50MB in some rare cases (Special feature accessed by user).
    We have to be able to run multiple instances (separate process/VMs) of this application on low end Windows PCs.
    The applications don't usually run for very long (less than 8 hours).
    Here is my problem.
    If I set the -Xms=20M -Xmx=64M, it works fine, but the GC is not very aggressive and soon, the application starts using a lot of memory, even if it is not really needed. And it never returns the memory to Windows OS.
    So each VM take more memory than really needed, which causes significant swapping on these low end PC (little RAM available).
    If I reduce the -Xmx flag, than I run out of memory in the rare cases where I need the full memory.
    Ideally, I would like to configure the GC to be more aggressive, i.e. the GC should collect instead of getting additional memory from the OS when possible.
    I read a few papers on Sun's web site about HotSpot tunning, but most of them are geared for large servers.
    Thanks!
    Francois

    And you are using the task manager to determine how "much" memory is being used correct?
    I suggest that you search out and read the numerous threads on this site that discuss that subject.

  • How to check memory usage of a debug

    I am very new, sorry for any newbishness on my part.
    Is there a way to track how much memory your debug is using?  I am trying to make a game, and I have 2 ways of doing something.
    One with an array of square objects doing hitTest, and one only 1 object and an array of cords doing a nested if{}.
    I want to see what each of these are doing in terms of memory usage during runtime and which one would be better.
    (added)
    Specificly not just which one of these is better, but also as different things are applied, I want to test how each of these things responds and which one would slow down a computer less.  And later on as things progress I want a way to test it.

    Hi there
    What Adobe product are you using? What you need to do is click the link below and locate the forum that is specific to the product you are using. Then re-post your question there.
    What you have done is the equivalent of wandering into a hospital and saying you feel ill. Where exactly do you feel ill? You may need a foot specialist, a heart specialist, a brain specialist, etc.
    Click here to visit the main forums chooser page
    Cheers... Rick

  • How to monitor memory usage of "Memory-based Snapshot" executable (MRCNSP)  in Linux?

    We have noticed in the past that MRCNSP/Memory-based Snapshot program executable consumes around 3.8 GB of memory on the linux VM. I understand that value change planning  is 32 bit executable so 4 GB is the limit. I want to monitor the memory usage of the executable when the program runs. The program usually runs overnight. I wanted to check with you experts if you have any MRP executable memory usage monitoring script that I could use.
    I found the metalink note OS Environment and Compile Settings for Value Chain and MRP/Supply Chain Planning Applications (Doc ID 1085614.1) which talks about "top -d60 >>$HOME/top.txt". Please share your ideas for monitoring this process.
    We do not use Demand Planning or Demanta or Advanced Supply Chain Planning which are 64 bit application. That is our future direction.
    Environment:
    EBS : R12.1.2 on Linux. The concurrent manager is on 64 bit linux VM, web services on 32 bit VMs.
    DB: Oracle DB 11.2.0.3 on HP UX Itanium 11.31. Single database instance.
    Thanks
    Cherrish Vaidiyan

    RAM on the controller is not the same as the C: drive. With respect to the controller, you can think of it in the same terms as your computer. RAM is volatile memory and your C: drive is non volatile flash memory.
    Depending on the frequency of the temperature excursions above and below your 70C threshold, the service life of the controller and the method you used to append to the file, there could be a number of issues that may creep up over time.
    The first, and the one you brought up is the size of the file over time. Left unchecked this file could grow continuously until the system literally runs out of flash memory space and chokes. Depending on how your are appending data to this file, you could also use more than a trivial slice of processor time to read and write this big file on disk. While I have not personally ever run one of the RT controllers out of "disk space", I can't imagine that any good could come of that.
    One thought is to keep a rolling history of say the last 3 months. Each month, start a new file and append your data to it during the course of the month. Each time a new file is created, delete the data file from something like 3 months ago. This will ensure that you will always have the last 3 months of history on the system, however the monthly deletion of the oldest data file will limit you to say 3 files at whatever size they happen to be. Unless there are hundreds of thousands of transitions above and below your threshold this should keep you in good shape.
    I also eluded to the method you use to write to this file. I would ensure that you are appending data using the actual file functions and not first reading in the file, appending your data as a string then writing the entire file contents back to disk. In addition to causing the highest load on the file system this method also has the largest system RAM requirements.

  • How to calculate memory usage base on graphic utilization

    Dear All ,
    We have t2000 server with solaris 10 and 15 zones inside , and install SMC server include module ,Harddware configuration is 16 Gb Memory , 4 x 72 gb Hardisk and Swap 4Gb .,from menu Manage container manager , we select host of the server then click utilization , but i see memory usage 19759 Mb , How to calculate memory from this graph ? cause maximum ream RAM only 16 Gb in our server.
    Regards
    Hadi

    PL/SQL collections are stored in the PGA. So you can monitor the PGA utilization of the session(s) to see how much PGA they use.
    SELECT sid, name, value
      FROM v$statname name
           JOIN v$sesstat using (statistic#)
    WHERE name.name in ('session pga memory', 'session pga memory max' )That will show you, for each session, the current PGA consumed by the session and the high water mark of PGA consumption by that session. You can join to V$SESSION and add additional predicates to narrow things down to the particular sessions you are interested in.
    Justin

  • How to reduce memory usage?

    OK - I've read through a ton of posts that discuss the "Out of memory" problem in Encore, but what can I do to reduce memory usage?
    I'm trying to produce a very simple Blu-Ray (h.264) project in Encore CS3 on Windows Vista. There are 8 or 9 timelines, a main menu, and 6 sub-menus. Each sub-menu has six static buttons. There are no transitons or motion menus. When I load the project, Task Manager says Encore is using about 1.3 GB RAM. I constantly get "out of memory" errors.
    I've loaded the same project on Vista 32-bit w/ 4GB RAM and Vista 64-bit w/ 8 GB RAM. Same behavior on both.
    Two questions:
    1. Why does Encore need 1.3 GB RAM for such a simple project?
    2. How do I reduce the memory usage?
    TIA for help on the PITA,
    rgames

    Please check with below link, if this can help.
    http://forums.creativecow.net/thread/145/863785#863796

  • Preload - how to see memory usage?

    excuse me for revitalizing this, but this:
    lucke wrote:Set PRELOAD_OPTS to verbose 10.
    still is neccesary to get an output in the log.
    btw. my log doesn't inform the memory-usage.
    is there an easy way to see how much memory it actually uses?
    Shouldn't there be a proccess running wich I can see in htop and therefor the memory usage?
    Last edited by capoeira (2012-01-12 17:21:12)

    it's not working for me. it is not showing memory usage and now even shows a syntax error:
    [studio@myhost ~]$ sudo tail -f /var/log/preload.log
    [Thu Jan 12 07:47:49 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 07:47:49 2012] Exiting
    [Thu Jan 12 12:56:04 2012] loading conf from /etc/preload.conf
    [Thu Jan 12 12:56:04 2012] loading state from /var/lib/preload/preload.state
    [Thu Jan 12 12:56:04 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 12:56:04 2012] Exiting
    [Thu Jan 12 12:56:16 2012] loading conf from /etc/preload.conf
    [Thu Jan 12 12:56:16 2012] loading state from /var/lib/preload/preload.state
    [Thu Jan 12 12:56:16 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 12:56:16 2012] Exiting

  • How to decrease memory usage in XE 11.2

    Yesterday I uninstalled Oracle XE 10 and installed OracleXE 11. Everything is going fine so far except for the memory usage - it's around 800 megs. I remember having this problem with the last XE instance, and there was some way to change this, but I don't recall what it was. I looked around on the XE web interface - which is very different from the last interface - but couldn't find anything.
    Does anybody know what I'm needing to change?
    Thanks in advance!

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E17781_01/server.112/e18804/memory.htm#CACFBJED
    Regards,
    Jari

  • How to determine memory usage?

    Is there something built into OSX that permits me to monitor and/or log memory usage?
    I use Logic Pro and FCP and would like to know if I reaching the limits of my memory (4GB) with the type of work I do.
    Thanks, Rob.

    How To Determine Your Memory Needs >>
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 
    Disclaimer required by Apple Discussions Terms of Use: MacOSG - a non-profit Apple User Group - may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to meter memory usage

    Hi,
    I want to meter the memory usage of some XML-Parsers. Thus I do something like
    long before = Runtime.getRuntime().freeMemory();
    //parse
    long after = Runtime.getRuntime().freeMemrory();but always the difference (after - before) returns a negative value, which means that the parsing creates memory ;-)
    First I guessed, that during parsing the GC gets active and collects more objects than created. So I called the GC right before the upper code, wait for 2000ms to ensure the GC does something, but the result is the same.
    I tried this with the kXML2.0, XParse-J and ASXMLP with different sizes but the same result.
    What goes wrong there?
    Kay

    Where are you trying it out?
    Some phones, specially high-end phones like Series 60, allocate more heap memory dynamically while the program is running, so the freeMemory() keeps getting bigger the more memory you allocate.
    Other than that, there really is no way to make sure the garbage collector runs after you call System.gc(). Implementations are free to completely ignore a call like this, even if you give them time to do it.
    shmoove

  • How to reduce memory usage when loading bitmaps from the library?

    When I use BitmapData.loadBitmap() to load an image from the library and then attachBitmap() to add it to a MovieClip it takes a lot more memory as opposed to just having the same image inside a MovieClip statically in a frame on it's timeline.
    The function dispose() not only clears the BitmapData object but also destroys the previously attached bitmap inside the MovieClip, so it can not be used to free any memory.
    Is it how it is supposed to be or is there any other way to dynamically attach bitmaps with memory usage comparable to just having them on stage?

    no, you use attachMovie() to create instance from library movieclips that have a linkage id.
    you can then create a bitmapdata instance and use the draw() method to overlay as many as needed.

  • How to disable memory cache for SL410?

    Hi,
    My lenovo thinkpad SL410 has Windows 7 prof edition as its OS.  But in the last few months it frequently crashes.  Many times when I use Chrome browser status would indicate AppCache, and that's an evil OMEN for its usually the prelude of crash.  Other browser may or may not have such issue, however, Chrome is really my preferred web browser.
    Some research seems to suggest disabling memory cache via BIO setup would resolve it.  And here's my lenovo's BIO info:
    Version: 1.23
    Date: 2009-10-19
    but it does not have any info as to who's its maker or the like.  And I don't see any option in the BIO setup that would allow me to disable cache.  So, two questions, 
    a) Is it possible to disable memory cache for SL410?
    b) if so how?
    Thanks.

    Hi mujno,
    As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
    However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
    Windows Runtime Components for side-loaded Windows Store apps
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • XML not displaying in Safari when using a XSL.

    Hi, has anyone encountered this issue where Safari, and all Mac browsers for that matter, don't display XML when using an XSL? When I use a XML file with an XSL stylesheet I get a "Document is Empty" error. It displays correctly when a CSS is used an

  • Not able to open BSP application in Internet

    Hi Everyone, i have a BSP Application which i have put into a tab strip as a link.But users are not able to open the url though they are able to log on to the standard application (cProjects suit 3.1) this is how i did. <htmlb:link id        = "Link1

  • Camera doesn't work ! 3 hours old Blackberry Z10

    I just bought my Z10 ! tried to use my camera and it doesnt work ! the screen turns to black and nothing is blocking my camera  ! WTH I JUST BOUGHT THIS THING ! Blackberry I hope you aren't wasting my money

  • Choose Layout button in ALV standard

    Hi abap expert, Is there any way to display a drop down list button for 'Choose Layout' which include the options (choose layout, change layout, save layout, manage layout) in just 1 button, instead of having the 'choose layout/change layout/save lay

  • Error: Timeout for content (ias1.0.2.2 on W2000)

    I have recently installed iAS 1.0.2.2 (standard edition) Database is 8.1.7.1.1 OS is Windows 2000 Machine is Compaq Armada M700 with 512Mb memory The install seemed to go fine, but some of the Portal administrative portlets are displaying the message