Please help :: JVM Memory Calculation

Hi Guys,
I've developed a struts based web application. I've got the java.lang.OutOfMemoryError when I tried to retrieve 2000 records in the login page itself. Ofcourse even in my listing of the modules.. i am getting the same...error
still i have confused with JVM size.. how much to be increased...? presently i have JVM size 32MB with jdk1.5, tomcat 5.5 , linux os..with 1GB RAM
please suggest..,

Well firstly i feel Holding 2000 records at a time is ceratinly foolish as sooner or later it would eat up all your JVM heap...
A better solution in order to maintain this is to use data paging....
first....
which you might divde into pages....
Say for example....
select count(*) from table_name where <condition>gives you total number of records present.
Say if you have divded the total records into 100 per Virtual Page
at a strench fetch first 100 records using properties like rownum(oracle),LIMIT clause in mysql and etc.
Hold the present page pointers in a bean Scoped session and then fetch the other page accordingly.this saves a lot of memory thought their is a lot of overhead involved.
the other would be usage of other caching techniques.
May be the below article might help you in this regard
http://java.about.com/library/weekly/uc_querycache1.htm
And if you are still struck to increasing increasing JVM Size you might have to configure it in App server batch server runtime parameters
check out below article of how configure few app servers to increase JVM Heap
http://www.chemaxon.com/jchem/doc/admin/tomcat.html
http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/ch02s02s02.html
http://e-docs.bea.com/wls/docs81/perform/JVMTuning.html
http://www.ibm.com/developerworks/websphere/library/techarticles/0706_sun/0706_sun.html
and checkout the below article to findout different technique followed to solve memory leak problems.
http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingOutOfMemoryMemoryLeakProblemsPattern.html
Hope this might help :)
REGARDS,
RaHuL

Similar Messages

  • During restore of my backup on iphone 5s i saw my photos and videos get doubled on ios 8.0 and moreover if i use to go at my computer and then open my iphone and in folder i see some files name local disk and my photos please help my memory doubles.

    during restore of my backup on iphone 5s i saw my photos and videos get doubled on ios 8.0 and moreover
    if i use to go at my computer and then open my iphone and in folder i see some files name local disk and my photos
    please help my memory doubles.

    I'm not sure, but I know it's not recommended to upgrade to iOS 8 on anything older than an iPhone 5. I only lost my music playlists and music that was on my phone, but that music is also on my iTunes, not the playlists though, and I don't want to go through ALL my iTunes library to fix it either... But it seems I don't have a choice right now.
    Whatever you do, do NOT upgrade to iCloud Drive, keep iCloud till OS X Yosemite comes out, if your computer is a Mac. I also just noticed that all my documents on my phone are gone from Pages, BUT if I go on the iCloud website they are still there. Hopefully it will all work itself out when I can update my macbook pro to OS X Yosemite.
    If you backed up your phone and all your purchases off your iPhone prior to trying to upgrade you should be fine... But I'm not even remotely sure.

  • Please help! memory card password! I never set one...

    I plugged in my memory card from my broken nokia e71 into a new nokia e6 and it asks for a password! I never set a password to begin with! is there some default code to override this? I really need my pictures off this sd card. please help.

    @Koncrete
    You might like to look at this post in particular and others by shuntfield in this thread:/t5/Eseries-and-Communicators/E71-Auto-Remote-Lock​/m-p/420626/highlight/true#M34724
    Although you haven't knowingly set a password AFAIK it is possible to change it to new one using the remote lock feature.
    Happy to have helped forum with a Support Ratio = 42.5

  • Please HELP -- JVM Error 102

    Hello,
    I just joined the forum because a friend suggested I try this support group to get help with the JVM Error 102 before I wipe my phone (Curve 8330).
    Earlier today I noticed my phone was not ringing or vibrating on incoming calls.  Tech support for Sprint told me to remove battery and then the JVM Error 102 started and now the phone will not turn on at all.
    Tried the JL_Cmder and get message it is not batch file. I did not see any ".cod" files.  The line before the error in the event log is "verifyHash failed for net_rim_bb_phone_model(1801)" and sometimes it is without the "(1801)".  Yes several lines in the log have "JVM Error 102".
    Please help.  Of course I haven't backed up for the past two weeks, too busy making appointments on my calendar for my new project.  HELP!!!
    Thank you,
    M

    Check the below link -
    http://supportforums.blackberry.com/t5/BlackBerry-Curve-BlackBerry-8300/JVM-Error-102-BEFORE-YOU-WIP...
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Please help - JVM

    I need help please! When I open pages with a java applet the Install on Demand prompt comes ("You need to install Java Virtual Machine"). If I press Download the Microsoft site comes ("No Java installed"), but then the applet loads perfectly well!!
    I know I have installed the Java Runtime Environment from Sun - the problem is particular sites don't let me even open such pages at all saying that I don't have Java. And I have an important job application that needs java for tomorrow... What could I do to make the browser/pc realise I really have it? I have played a lot with the browser settings & java console and also tried with different browsers but no success. Can you suggest anything in particular please? (the application form doesn't support Mozilla/Netscape 7 - I am working with XP+IE6) Thanks.

    I'm having the same problem, I install the lastest verison of JVM and I know it's installed because I can see the little coffe cup logo in my system tray but when I use the test app from Java websit nothing happens and like you I'm having problems with several websites. I have installed/uninstall about 6 times now and the same thing keeps happing. So I hope you can some help because I need it too. Running 98SE+IE6

  • Help - JVM memory issue w RH3 and Apache (Oracle 11.5.9)

    We have an issue where we need to increase the memory on our JVM on 32 - bit Linux OS past 1.9G addressable. 64 - bit is not an option and niether is hugetbl. are there some settings I am missing to enable the JVM to address more than 1.9 G. I have set Xmx and can allocate 2.6 G but cant address more than 1.9G. This is a huge issue that can hold up a critical go live
    -any ideas???

    11.5.9 does not use AK for any OAF pages, we migrated all the AK data way before 11.5.9 was released.
    dont worry about the regionname and the URL param, there will be a regionmap to specify the xml that replaced this AK region.
    look for one of my threads to understand how to get the xml for the ak region appearing in the URL
    Thanks
    Tapash

  • PLEASE HELP - Subtraction not calculating correctly

    Post Author: hollyschulz
    CA Forum: Formula
    This formula I have seems to work any other time, but this one batch I am reporting on doesn't work properly:
    (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})){@nc} = if ({CHART.SUSPEND_CODE} <> "GC") then 1
    The results for {@nc} is 0 in the report, the result for (distinctcount({CHART.CHART_ID})) is 41.  How come this result of  (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})) is 40 in the report?? (41-0 should = 41 but crystal has 41-0 = 40)
    I tried adding a +1 to the end of the formula and pulling data from a different batch, but the results were 1 too much.

    Post Author: V361
    CA Forum: Formula
    Hi, Sometimes I will break the formula on purpose, save it any way and run, then when the error pops up, it will show the values in the formula editor. (in CR XI anyway)  try this formula..
    (distinctcount({CHART.CHART_ID}))-(distinctcount({@nc})){@nc} = if ({CHART.SUSPEND_CODE} <> "GC") then 1 / 0
    This will cause the formula to fail, but hopefully you will be able to see the value of {@nc} during the calculation.  Also, try adding this to the details section and manually count.
    If that does not help, could you give some sample data.

  • Please help me in Calculating Sybase IQ Daily,WTD,MTD, YTD,QTD,SPLM,SPLY

    Hi Team,
    Need to Calculate No of Customers from a particular dimension table on these measures Daily,WTD,MTD, YTD,QTD,SPLM,SPLY
    Can anybody help me with the Logic its extremely urgent.
    Thanks all for your help
    Regards,
    Yedu

    Is that part of an entire script, I don't see the tokens changing as TimG observed is this being called from a different routine. (are you calling the same script using a for loop?)
    I think instead of updating the subvar everytime, he just used a bat/sh script to run it for various members.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Please help jvm j9

    I am currently developing a embedded application that will be running on a 400mHz arcom board utilizing linux 2.4 and a j9 jvm. Is there a way to utilize sdk1.3 and the comm 2 api in my program development? I need to utilize both of these apis for my modbus master file to work, but what I keep finding is information about j9 in cellular and pda applications. The board is configurable with up to 64M of SDRam and 256k of battery backed SRam.

    Hi Man
    I am trying to do something similar on Arcom SBC-GX1. Have a standalone application ( GUI Based uses awt and swing api's ) that runs on a standard linux box running JDK 1.4 but when I try to do the same thing on the Arcom one I get an unsatisfied link error.

  • Please help - 7373 memory card not recognised

    I bought a 2GB Kingston memory card for my nokia 7373. I put photos on it from a converter in my computer, but when I put it in my 7373 it does not recognise the card. However, my friend's 7373 recognises the card and it works fine. The memory card slot on my phone does not appear broken to me. Does anyone have any suggestions as to how to make the card work in my phone of or what could be wrong?

    if your card works on your friends phone then the mmc is fine something is wrong with your phone.it can be hardware.though it does not appear faulty from outside but there are filters which might have got spoilt and therefore it is better to visit to NSC.
    tongue is too confused on what to speak

  • I have installed the most recent version of Snow Leopard on my MAC, and I am trying to install Mountain Lion from the Apple Store.  It will not install, because it says I do not have 2GB of memory, even though I have over 200GB available.  Please help.

    I have installed the most recent version of Snow Leopard on my MAC, and I am trying to install Mountain Lion from the Apple Store.  It will not install, because it says I do not have 2GB of memory, even though I have over 200GB available.  Please help.

    Welcome to the Apple Support Communities
    One thing is the memory, and another thing is the hard disk space. You are telling me that you have 200 GB of free space on the hard disk, but the App Store is telling you that you have to install 2 GB of memory or more on your Mac if you want to upgrade to OS X Mountain Lion.
    First of all, open  > About this Mac > More Info, and copy "Model Identifier" here, so we can know what Mac you have got and how much memory you can install.
    We recommend to buy the memory in OWC or Crucial (Crucial is cheaper and offers the same compatibility warranty as OWC) because you won't probably have any problem with the memory you buy there

  • Please help, my iMac is running slow and plenty of memory available?

    Please help, my iMac is running slow and plenty of memory available? I tried reading some of these forums to see what to do, I have already deleted all of my downloads that were stored in the downloads file. Not sure what to do next, I ran the etrecheck and here is the following info from the scan:
    EtreCheck version: 2.2 (132)
    Report generated 4/20/15, 2:55 PM
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Click the [Click to remove] links for help removing adware.
    Hardware Information: ℹ️
        iMac (27-inch, Mid 2011) (Technical Specifications)
        iMac - model: iMac12,2
        1 2.7 GHz Intel Core i5 CPU: 4-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 0/DIMM1
                Empty  
            BANK 1/DIMM1
                Empty  
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        AMD Radeon HD 6770M - VRAM: 512 MB
            iMac 2560 x 1440
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 5:29:18
    Disk Information: ℹ️
        ST31000528AS disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 999.35 GB (872.44 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        OPTIARC DVD RW AD-5690H 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple, Inc. Keyboard Hub
            Apple Inc. Apple Keyboard
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Adware: ℹ️
        Genieo, InstallMac Adware! [Click to remove]
        More adware files Adware! [Click to remove]
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cloudd.plist
        [killed]    com.apple.cmfsyncagent.plist
        [killed]    com.apple.coreservices.appleid.authentication.plist
        [killed]    com.apple.EscrowSecurityAlert.plist
        [killed]    com.apple.gamed.plist
        [killed]    com.apple.icloud.fmfd.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.printtool.agent.plist
        [killed]    com.apple.scopedbookmarkagent.xpc.plist
        [killed]    com.apple.security.cloudkeychainproxy.plist
        [killed]    com.apple.spindump_agent.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        15 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.icloud.findmydeviced.plist
        [killed]    com.apple.ifdreader.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.spindump.plist
        [killed]    com.apple.wdhelper.plist
        7 processes killed due to memory pressure
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [running]    com.adobe.AdobeCreativeCloud.plist [Click for support]
        [running]    com.dced8a8837572b7b.agent.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [not loaded]    com.dced8a8837572b7b.daemon.plist [Click for support]
        [running]    com.dced8a8837572b7b.helper.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [failed]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support] [Click for details]
        [loaded]    com.genieo.completer.download.plist  Adware! [Click to remove]
        [loaded]    com.genieo.completer.update.plist  Adware! [Click to remove]
        [running]    com.google.Chrome.framework.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [failed]    com.webtools.update.agent.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        AdobeResourceSynchronizer    Application  (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app/Contents/Support/AdobeResourceSynchronizer.app)
        Google Chrome    Application Hidden (/Applications/Google Chrome.app)
    Internet Plug-ins: ℹ️
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 3.0.0.85 BETA  - SDK 10.7 [Click for support]
        AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0
        SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 40 Check version
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
    Safari Extensions: ℹ️
        Omnibar  Adware! [Click to remove]
        MacMin
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Java  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             3%    AddressBookSourceSync
             3%    Google Chrome Helper(10)
             3%    Google Chrome
             2%    mdworker(5)
             1%    WindowServer
    Top Processes by Memory: ℹ️
        729 MB    Google Chrome Helper(10)
        481 MB    kernel_task
        119 MB    Google Chrome
        115 MB    Mail
        74 MB    softwareupdated
    Virtual Memory Information: ℹ️
        58 MB    Free RAM
        3.94 GB    Used RAM
        218 MB    Swap Used
    Diagnostics Information: ℹ️
        Apr 20, 2015, 09:21:25 AM    Self test - passed

    So I looked up the info on OWC as suggested and found the correct memory to upgrade but not sure how much to get and which option? I wanted to know how much space I have available to upgrade so I don't buy something that's more than what can be used. I'm not sure if I need 4GB or 8GB of ram? Also there are two options with every memory choice for instance:
    8.0GB PC3-10600 1333MHZ SO Kit (4GB + 4GB) w/Lifetime Limited Warranty
    Same Day
    $78.79
    8.0GB PC3-10600 SO-DIMM 204 Pin w/Lifetime Limited Warranty
    Same Day
    $82.79
    Not sure what the difference is in the two and which I would need to purchase? Thank you for all your help!

  • Why is my iPod Touch's memory 0 when i only have 249 mb of photos and camera and 23l mb of Music? Please help this is a big issue! what do i do? ps i dont want to loose 2 of my apps!!

    I have a 8GB Ipod Touch and i know its not a lot, but in the beginning it was working fine. For some time now it wont let me excede even 1GB of memory. i have no games, no apps, not many contacts, hardly anything! only 249 mb of photos and camera and 23l mb of Music. i have backed it up and restarted it and everything and i am getting annoyed! please help me!! i cant live without my ipod!!! This is urgent!
    P.S: i have 2 apps on my ipod that i would not like to loose! IF theres anyway to save them in the process of fixing my ipod that will be great!
    Thank you!

    An "other" that large usually indicates that the "other" includes corrupted files.  Usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Backing up, updating, and restoring iOS software

  • I've bought a new USB flash memory. I plugged it in the USB port then a message come out: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.... Please help...

    I don't know what to do. I plugged that USB in both ports but the same message came out. I charged my laptop and the same thing happened again. The surprising thing is that I tried plugging the USB in my cousins laptop (Macbook Pro) and it worked!!! but not with mine. The USB flash memory made by PNY. Please help...

    There are two types of USB 2 devices - low power which consume 100 milliamperes or less from the USB bus and high power which consume up to 500 milliamperes. Your flash drive is probably a high power device and is overloading the USB bus of your computer. (Some notebooks can support only low power USB devices.)
    I know that my MBP's USB ports support high power devices but I've come across reports that not all high power devices will work on the MBA and that might be the case for your flash drive. My guess is it has a large capacity? 32GB or more?

  • Inactive memory takes all the memory - please help

    I have a Macbook Pro - August 2009, upgraded version to 2.66 MHZ, advance display card, Dual core.
    I recently upgraded the RAM to 8GB (Kingston) to clear more memory for my massive application use, the thing is it didn't solve anything because the issue I had problems with - Inactive Memory, wasn't resolved.
    Inactive memory supposed to hold the memory for the apps you closed in case you'll run them once again, but it NEVER clears the memory, I can see the "blue" color taking all the free mem and the computer slows down! no free mem what so ever.
    Now the Inactive mem grows enormously and gets to be more than 4GB, it has the same effect, the memory runs out!
    Is there a way to fix it? I'm going crazy with that.. what a terrible design!
    iFreeMem doesn't work on the 8GB, I'm at a loss..
    Please help!
    Thanks,
    Eli.

    Sounds like you have never done a PRAM reset or a SMC reset. Do both and see if this helps:
    _SMC RESET_
    • Shut down the computer.
    • Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    • On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    • Release all the keys and the power button at the same time.
    • Press the power button to turn on the computer.
    _PRAM RESET_
    • Shut down the computer.
    • Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    • Turn on the computer.
    • Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    • Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    • Release the keys.
    Roger

Maybe you are looking for