Java program consumes far more ram on linux than on windows - why ?

Hello dudes,
i encountered a problem and i dont know how to solve it. i've a java application that consists of several classes and 3 threads. it consumes about 7 mb on win2k but up tp 100 mb on SuSE Linux and shows up 13 threads.
is this something wrong with java or with linux? have any of you guys already faced the same problem and solved it ?
thanks for any replies.

Be careful. The Linux ps command by default shows the individual threads of a Java program as separate processes when they are in fact not. The fact you have 13 threads is normal, most are for housekeeping and appear on Windows as well.
I can't speak to the total memory utilization, but make sure you aren't adding up the memory of each of the 13 lightweight processes (threads) and counting the same memory usage 13 times.
Chuck

Similar Messages

  • Firefox 4.0 uses 3x more RAM in average than 3.6.16 did!

    Since upgrading to Firefox 4.0 from 3.6.16, I've noticed that '''the new version uses approximately 3 times more RAM as the previous version did''', comparing like with like (same browsing patterns etc.). This becomes extremely annoying when having several tabs open (50+). This seems as a serious memory leakage, and IMHO it ''should be instantly addressed by the developers, 'cause it deteriorates the browsing experience massively''.
    A laymans hint: it seems like the browser is refreshing tabs which are in the background, even those which are in a minimised 'tab group' - my suggestion (providing this previous assumption is valid) is to allow for the users to set a parameter for each 'tab group' as being offline 'tab groups', i.e. not continuously refreshed by the browser (I personally, when I organise web pages in tab groups and send them in the background, rarely (if at all ) want them to be refreshed. ''This hint was just a guess, disregard it if proves to be false''
    OS: Vista Business SP2

    Thank you, cor-el, for your reply. I clicked on the link you provided, and it took me to Create a New Article. I'm assuming an article already exists for this. Can you instruct me on how to view this article. This is the first time I have ever had to refer to Mozilla Help. I have tried to do this on my own, but am having difficulty. Thanks for your help.

  • How can Java program convert to .exe file which can run on window system?

    Hi,
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.
    I had downed EXE4J software to make the program to .exe. BUT the exe file can not be run on other PC with the error message that warning the PC have not set up JVE. IS it necessary to set up JVE?
    OR give me your experience on how to do it?
    Thanks!

    >
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.>If you only code for Windows, why not use dotNet or C# or whatever system MS is pushing at this instant?
    If you wish to code for computers, Java is good, but it needs a JRE.
    The easiest way to get a Java application up and running on a client PC is to launch it via. webstart, and to use deployJava.js to ensure the minimum Java is on the client PC, ready to use webstart.
    Used this way, you link to a web page where the user clicks a link that downloads and installs the application (and adds extras like splash screens, desktop integration, registration of interest in file types, automatic update..).
    As an aside. The best way to ensure answers is to indicate your interest in solutions, by adding a lot of Duke stars to a thread.

  • ATI performance is worse in Linux than in Windows

    Hello,
    I am using the catalyst driver (version 10.9), with xorg 1.8. Playing some demanding games like 0 A.D shows a lot worse performance on Arch than on Windows (with the same game). My ATI card is an ATI HD 4350.
    Is this difference in performance normal? Is there any way to make Arch's graphic processing match Windows's?
    I attach my xorg.conf:
    Section "ServerLayout"
    Identifier "aticonfig Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    EndSection
    Section "Module"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection

    Darksoul71 wrote:
    @Davigetto:
    Hm, sound like fglrx is loaded correctly. Strange. Check dmesg output and your logs if you see any hint on problems.
    flamelab wrote:Fglrx is a piece of garbage. You are lucky that you can have a display on Linux with that.
    True, but unless radeon gets a big feature and speed boost fglrx is the only option under Linux to get maximum performance.
    At least unless you plug a NVidia card in your mobo.
    For now even the "bleeding edge" radeon drivers for R600 chips is mostly only usable for older games (Quake, ioquake, UT2k4).
    Well, I don't see anything strange in dmesg. In fact, when I said "performance", I meant "30 fps on Windows, 17-20 fps on Linux".
    Maybe is a merely driver problem, but I just want to know wheter I am alone in this kind of problem and more people experiences the same.
    Last edited by Davigetto (2010-10-03 21:52:58)

  • Brbackup/backint consumes all my RAM on Linux

    I am investigating the disappearnce of RAM in my Linux hosted SAP ECC6 Development System on SLES10 and Oracle 10.2.0.4. The box is hosted on a VM but as this problem only happens when the backup is ssheduled I have ruled out VM as the cause for the time being.
    The box has 24GB or RAM allocated.
    After starting Oracle just over 1GB is used.
    After starting R3 just over 2.5GB is used.
    During the normal operations the used increases to 7GB leaving 17GB Free.
    Brbackup starts at 09:00 and with no other large processes running suddenly Free RAM drops off to 112MB. When the backup completes the free RAM remains at 118MB. Why do I think that the backup may be the cause? Because I restarted the server just over a week ago, and got the same dropoff or RAM at the same time on the same day. (being a DEV system I only do a full backup  a couple of days a week).
    If you have any ideas of how to fix this issue please respond.

    Hello Mark,
    in order to avoid that all the available physical RAM is consumed on your system by the file system cache during backups I would recommend to check if it is possible to configure your backup software to use DirectIO. With DirectIO enabled all data written by the backup software would go directly to the storage without being cached in the file system cache by the OS first thus avoiding that the RAM gets filed by the file system cache during backups.
    Regards,
    Frank Danapfel

  • Is the compilation done differently on Linux than on Windows?

    Hey guys,
    I am currently having some issues with a FPGA program with Softmotion not compiling.
    We are running out of options in terms of how to get this FPGA program compiled.
    So my question is does compiling on Linux have a different probability of compiling FPGAs?
    I have heard that Xilinx Compiler is meant for Linux so it runs more efficiently and faster,
    so I was just wondering if the compile method was different as well
    Jeff

    It doesn't matter if you run it on Windows or Linux.  The compiler was just optimized to run on Linux, therefore it can run faster on Linux.  But the compilation itself won't matter.
    I'd say it is time for you to go through your local NI representative to try to get some time with the NI Systems Engineering group.  They will likely find plently of places to help you optimize and fit your code in into an FPGA.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Time Consumption more in T5220 Hardware than N440 Hardware.Why?

    Hi,
    I have an issue related to T5220 Hardware machine.
    Same solaris is installed in T5220 and N440 machine.
    Same application is running in T5220 and N440 machine.
    Same operation is performed in T5220 and N440 machine.
    The operation is getting the contents from the Database and writing in XML file.
    The XML file size will be around 85MB.
    Both the operation are scheduled using Java code at night 23:00 hrs.
    In N440 machine, the operation takes 15 mins.
    In T5220 machine, the operation takes more than 1 hour.Some times it even takes 2 hours.
    Could anyone help me out in this issue?
    Atleast suggest some ideas.I am clueless on this..
    Help is very much needed..
    Thanks in advance.
    Srinivasan.

    Quote
    This is for MSI engineers
    then this is the wrong place as this is a Users-to-Users Forum. >>How to contact MSI.<<

  • My iphone has more songs and playlists than my computer, why aren't they the same

    Why won't all songs and playlists from iphone sync with computer?

    Charles,
    I get a message that i have purchased songs on my iPhone that I should transfer to my playlist before I upgrade the software. Do you know how to do this?

  • LabView DAQ running more stable under Linux?

    Hello,
    We are doing LabView DAQ using a cDAQ9714 module (with AI card 9203 and AO card 9265) at a customer site. We are running an excutable on a Windows PC and had a couples of times (3 so far) that the PC just gone freeze for some reason and we lost all inputs and outputs. Each time it happend after the program continous run a few days. So far we have no clue why this is happening (Any idea?)
    We need the program to run continously for months and years and absolutely hate the fact that it freeze. Since we couldn't find any bug in the program till now, we're thinking to blame Windows. Then alternative for us is to use Linux os. My questions are:
    1. Does LabView run stable on Linux than on Windows? Any data or experience anyone has?
    2. To get the same program runs on Linux, I heard I have to buy a LabView Linux delelopment tool and create the excutable from there. Does this involve any extra effort than the Windows one?
    3. Does NI have any industrial PC that has Linux OS preinstalled instead of Windows? We bought one PPC 2115 before.
    Thanks!
    Rgds,
    Harry

    Harry - the main link here: http://zone.ni.com/devzone/cda/tut/p/id/6909 will show DAQmx (some Linux) and DAQmx Base (Linux/Mac) support for all of our products.  It's the same table on the last link it just links a list for all of our hardware offerings.  Currently there aren't any offerings with your desired I/O, we have a few multifunction DAQ devices like the USB-6218 that can be programmed with DAQmx Base in Linux.  If you are looking to run stand-alone and highly stable applications you may want to look into programming an application with the LabVIEW Real-Time Module and deploy it to a RTOS (Real Time Operating System) controller.  You would program the application in Windows with LabVIEW and this additional module, and then distribute the program to a controller.  If you deployed to an industrial controller you can interface PCIe, USB buses etc for your DAQ instruments.  We also offer this in our CompactRIO form factor where you would deploy the application to a controller/C series chassis similar to the compactDAQ you are using now in that it houses those C series modules but has much more to offer.  I've put a few links below here if you would like to look into these products any further.  
    NI 3110:  http://sine.ni.com/nips/cds/view/p/lang/en/nid/206847
    NI CompactRIO: http://www.ni.com/compactrio/
    NI 9074 Integrated 8 Slot Controller-Chassis:  http://sine.ni.com/nips/cds/view/p/lang/en/nid/203964
    Regards,
    Ben N.
    Applications Engineering
    ni.com/support

  • Starting Java Program with a bash Shell script

    Hi !
    I know this is a Linux query but I am putting it on this site to get different answers.
    I want to start my Java program with a shell script. Can anybody give me a proper script to start my Java program?
    I am using RH Linux 7.3 and JDK 1.4.
    Can I start the Java program without starting the terminal? Just like the Sun One Studio4 'runide.sh' script.
    Please help.
    Bye Niteen

    assuming you have your PATH and CLASSPATH variables set correctly, your script should look like this:
    #!/bin/bash
    cd <project_dir>
    java <class> &
    example:
    #!/bin/bash
    cd ~/projects
    java project1.main_package.MainClass &
    of course you could add some more elaborated stuff like compiling files before running the program, etc.
    if you dont like terminals, try running "nautilus" (it's like Windows Explorer). i never use nautilus (especially for running scripts), so i cant guarantee it will work, although i dont see why it shouldnt...

  • How to run native program with Java program?

    Hello
    I've got following problem. I'd like to write file browser which would work for Linux and
    Windows. Most of this program would be independent of the system but running programs not. How to run Linux program from Java program (or applet) and how to do it in Windows?.
    Cheers

    Try this:
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("ls -l");
    InputStream stream = proc.getInputStream();
    InputStreamReader isr = new InputStreamReader(stream);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while ( (line = br.readLine()) != null) .....
    "if the program you launch produces output or expects input, ensure that you process the input and output streams" (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html)

  • Adding Java Program as schedular in tomcat server

    Hi,
    I have a java program and running a web application on tomcat server (Windows/Linux/Solaris).
    My problem is to start/stop the java program whenever the tomcat server start/stop.
    Please help on this.
    Saravanan.P

    Yes:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
    Read the docs.

  • Does 64 bit Windows see more RAM then the 32 bit version under Boot Camp?

    To be or not to be....
    I've found many useful hints on boot camp/ windows/ RAM correlations but none on this question, grateful for any idea?
    paul

    Your question has been answered many times in the Boot Camp forum. https://discussions.apple.com/community/windows_software/boot_camp
    32 bit Windows can address 2^32 addresses. 64 bit Windows can address 2^64 addresses. There are some limitations for 64 bit Windows depending on the version. But yes, 64 bit Windows addresses far more ram than do the 32 bit versions of Windows. So if your computer has more than 4GB of ram, you must use the 64 bit Windows in order to use all your ram.
    Search using Google and you will find many more articles explaining the differences between 32 and 64 bit Windows.

  • My HD icon on the desktop is showing far more free space than I actually have.

    I use a 2011 17" MBP with OS X Lion (750GB HD, 8GB RAM, 2.2GHz i7) and have noticed recently (only since I bought the new OS) that the Hard Drive icon on my desktop shows far more free space available than I know I have. It shows 488GB free of 497GB (with 250GB on a partition for Windows 7 Enterprise) and I know I have about 250-300GB worth of stuff. I've checked several times to ensure it's still there and all my files still work so it doesn't seem to be deleting things randomly. I just want to know if it's a calculation bug or if there's something else wrong. Thanks for any help in advance!

    In case anyone reads this wondering if there's a solution, there is: turn off automatic time machine backups, and restart your computer. It turns out I had about 80GB worth of data stacking up between physical backups to external HDs. Apparently it counts as free space because it can be over-written when necessary, hence an elated free space count.
    I also did a disk repair on the partition which OS X is on, which fixed some "minor logging issues" but I don't think that made a difference because nothing happened until I cleared the backup cache by turning off time machine. By the way, once I turned off time machine my HD free space sky-rocketed to 576GB of 497GB which freaked me out but don't worry, this is fixed once you restart.

  • Running another java prog from a java program

    hi,
    I would like to add a button to my program in which when pressed, it will launch another java program.
    so far i googled and found out how to run from this site:
    http://www.devx.com/tips/Tip/13867
    but when the 2nd program is launched, the first program become inaccessible until the 2nd program is terminated.
    is there any way to run the program without causing the first program inaccesible? thank you

    run the commands in seperate threads.
    http://java.sun.com/docs/books/tutorial/essential/threads/

Maybe you are looking for