Java and linux

I read the followig blurb on a website (http://rimuhosting.com/howto/memory.jsp):
Resolving: High Java Memory Usage
Java processes can often consume more memory than any other application running on a server.
Java processes can be passed a -Xmx option. This controls the maximum Java memory heap size. It is important to set a limit on the heap size, otherwise the heap will keep increasing until you get out of memory errors on your VPS (resulting in the Java process - or even some other, random, process - dying.
Is the second paragraph accurate?

I do not think you are correct, at least on the Linux
platform. I don't think there is a default max heap
in Linux, neccesarily...
Does anyone have any info on this? I have spent a
great deal of time researching, to no avail.It is correct information. Also, you are incorrect when you say it does not apply to Java 5. If you had bothered to read the information I directed you to, you would have found the following:
-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples:
-Xmx83886080
-Xmx81920k
-Xmx80m
On Solaris 7 and Solaris 8 SPARC platforms, the upper limit for this value is approximately 4000m minus overhead amounts. On Solaris 2.6 and x86 platforms, the upper limit is approximately 2000m minus overhead amounts. On Linux platforms, the upper limit is approximately 2000m minus overhead amounts.
I was fully aware of the various conditions that alter the answer, including the server class machine variation. If you had properly asked the question, giving the specifics that you had, you would have received an answer that fit the specifics; you received an answer that fit the question, and a reference to more information.
Please learn how to ask questions correctly, and also research before you argue about the answer - it appears you are more interested in arguing than in the answer. Server class information http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html

Similar Messages

  • Need help for java and linux

    Hi, guys,
    I am being involved in a project.My current task is to build an interface using java. This interface will obtain some information from a linux-based software called NistNet, which is done by C and has GUI as well. My question is, can I use this java-based interface to obtain some information that is typed in this NistNet'GUI? If I can, how can I do that?
    Any hint available?
    Thanks!

    You can bridge between Java and C using the "Java Native Interface" (JNI). There used to be a good tutorial on this site but it vanished for no apparent reason in some resent update, so try a websearch.
    See also
    http://java.sun.com/j2se/1.4/docs/guide/jni/
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/

  • Sun Java and Linux PPC?

    I've installed yellowdog linux on a Mac Mini and it seem that sun doesn't provide any installations for linux-ppc. IBM does and it works s� this is not a big issue but a link or something to IBM could have made my life easier.
    Now I go for the NetBeans installation and this is a binary file probably x86. Why cant you provide the installation using a java application or someting other than an executable?
    Is there any way to install NetBeans on ppc based linux?

    Hi ! I saw the message only now ... I think the class files are loaded from JVM which has to be correlated to the platform (32/64 bit) so I think the only preoccupation is to find netbeans in archive format !
    See this link http://www.netbeans.info/downloads/download.php?a=n&p=1 here you can find the q-builds in tar/gizipped or zipped archives. These ones are development versions. Try these ones ! Bye !

  • Java AND Linux Red Hat

    Hi, I'm a new user of Red Hat. I'm searching the best Java developer tool for linux.
    May you help me?
    TankYou.
    Claudio

    Thank You.
    ... i'm downloading JB5 Personal Edition. :)

  • Problem with java, ASCII and Linux

    Hi Friends,
    I has a Linux RedHat 9.0 with a jre1.5.0_04 (rpm package of Sun).
    I has a problem with ASCII , for example :
    import java.io.*;
    public class HolaMundo
    public static void main (String[] args)
    System.out.println("Hol� M�ndo");
    this programs runs ok on my windows jdk so it prints "Hol� M�ndo", but when i run the same HolaMundo.class program on my linux redhat it prints "Hol�� M��ndo"
    I think the problem is with the ASCII table that uses the linux version of jre, but i dont know how to solve this problem. I need a Spanish-European ASCII table on my application but i think it is working with a US-ASCII table.
    Then i has installed a kaffe 1.0 (rpm) java machie on this linux and this solve the problem but i has another problems of compatibility with this old version of java kaffe.
    Do you know whats happening?
    Thanks in advance.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • Fonts in java apps for win and linux

    Hi everyone.
    i need to build an application mult-plataform, to run in windows and linux...
    but i don�t know waht font i must use...the default font that java takes doesn�t exist in linux (dialog)...
    waht font should i use in my app??
    thanx

    For going multi-platform it is easiest to stick to the logical fonts: Fonts named "Serif", "SansSerif", "Monospaced", "Dialog", and "DialogInput".
    These fonts are guaranteed to exist on any platform, although their implementations may be different. If you use others then you'll have to figure out how to deal with cross platform issues.
    Jeff

  • Corrupt ? : Java and ABAP Trial Version on Linux - VMware Edition

    Has anyone been successfull in downloading / running the brand new testdrive "Netweaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition" ?
    I tried downloading it twice, but it appears the second file (part2.rar) is corrupt.
    unpacking gives a CRC error on file 'SLES10SP1_Test_Drive(2)-s003.vmdk.
    Thanks & Best regards,
    Jeroen Engelen
    SAP Netweaver Technology consultant

    Hello all,
    You have to follow instruction on this side>
    http://www.novell.com/documentation/sles10/esd/ii_sap_testdrive_sles10sp1_vmware1.html
    YOu need to download
    part1 > which is soft from NOvell called
    SAP Test Drive "SLES10SP1VSAP.rar"
    Maybe this link help you "http://download.novell.com/index.jsp?product_id=&search=Search&families=2658&version=8161&date_range=&keywords=&sort_by=&x=14&y=7
    After donwload from sdn part two
    SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition
    from sdn Downloads.
    YOu need to use VMWARE soft to start up SLES 10 (part1) and after that use SLES to start up SAP.
    But here I have problem I can not login to SLES as I don't know passwrod, I was trying to found it at novell web site or SAP without any sucess.
    So at this point I am stuck
    Here is the same qeustion from Jim Jiang  and me
    what is user name  and password for SLES10 SP1 SAP Version
    Hope this give you overview what needs to be done, to start up Trial SAP version
    Peter Nechala

  • Java and oracle in linux

    hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
    thnx in advance..

    884540 wrote:
    hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
    thnx in advance..You can mention the classpath using the javac and java options:
    javac -cp .;<path> <ClassName>.java
    and
    java -cp .;<path> <ClassName>
    Or refer the below link to avoid mentioning classpath everytime you run/ compile the program
    http://www.linuxquestions.org/questions/linux-software-2/j2sdk-install-174483/#post898715

  • SAP NetWeaver7.0-Java and ABAP trial version on linux. login problem

    Hi all.
    The following programs SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition installation.
    Written by Mr. Gregor installation at https: / / SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition - Tips & Tricks
    Note.
    As I write programs that install the setup screen appeared normal. But username: root, password: sap123 is wrong. Ejected.
    What is the problem?
    Pls reply..
    Best regard.

    oh~ dear  it's noncense  $-(
    found it.
    username:root password:root
    have a nice day.

  • Are Java and Flash (or any plugin; as a matter of fact) supported on Linux Firefox 8? I don't see any lib or plugins directory in the install directory.

    I don't see any plugin support on installing Linux Firefox 8 tar.bz2 package. I've tried symlinking libnpjp2.so and libflashplayer.so to the isntall directory but Firefox doesn't seem to recognize those. I don't find any mention of disabling plugin support (Java and Flash specifically) on Firefox 8 release notes. Is anybody else facing this issue?

    Thanks. Creating a "plugins' directory inside the profile directory, and putting symlinks to plugin files inside the directory solved the problem

  • Java RTS 2.1 Beta free evaluation release for Solaris and Linux available

    Hi:
    I would like to notify this forum that a free evaluation release of
    Java Real-Time System (Java RTS) 2.1 Beta is now available for downloading
    at our public web site.
    Supported platforms are Solaris/SPARC, Solaris/x86, and Linux/x86 with
    real-time POSIX APIs. The specific Linux distributions which this release
    has been tested on are: SUSE Linux Enterprise Real Time 10 (released)
    and Red Hat Enterprise MRG 1.0 (beta). As for the Solaris versions,
    both Solaris 10 Update 3 and Update 4 are supported.
    The URL for the web page where to start in order to be able to get to
    the download link is:
    http://java.sun.com/javase/technologies/realtime/rts/
    The download link will be presented to you after you fill out a quick
    survey and agree with a click-through, 90-days e-license.
    The latest version of the Java RTS Beta technical documentation
    bundle included with the product is being separately maintained at
    our public website and can be accessed starting from here:
    http://java.sun.com/javase/technologies/realtime/reference/rts_productdoc.html
    Thanks,
    -Carlos
    Carlos B. Lucasius
    Java SE Embedded and Real-Time Engineering
    Sun Microsystems, Inc.
    http://java.sun.com/javase/technologies/embedded/index.jsp
    http://java.sun.com/javase/technologies/realtime.jsp
    http://java.sun.com/javase/technologies/realtime/faq.jsp
    http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-1331&yr=2007&track=5
    http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-2901&yr=2007&track=5
    http://developers.sun.com/learning/javaoneonline/j1lab.jsp?lab=LAB-7250&yr=2007&track=4
    http://www.sun.com/training/catalog/courses/DTJ-4103.xml
    http://www.youtube.com/v/xH1yUXd9krU
    http://blogs.sun.com/jtc/
    http://blogs.sun.com/delsart
    http://blogs.sun.com/bollellaRT

    Hello,
    Just a quick question: can we have an official position from Sun regarding support of earlier releases of Solaris with Java RTS 2.1? Our customer is currently running Solaris 10 Update 3 with current Recommended patches, and the 2.1 beta cyclic driver supported this version of Solaris. However with the official release version of 2.1, support for U3 disappeared (only U4 and U5 are now supported). Aside from "rubber stamping" the Solaris build via /etc/release, is there a technical reason why U3 is no longer supported? As long as our kernel is up to date, can we safely use 2.1? Or is it just a case of being unable to officially support and test so many releases of Solaris?
    Is this a general rule-of-thumb we can expect in future: only supporting the last 2 updates of Solaris 10?
    Your advice is appreciated.
    Thanks,
    Dave.

  • WebObjects Java Client-JNLP fine on OS X and Linux, Windows problem

    Hi,
    I have been making a somewhat fruitful exploration into WebObjects Java Client development in order to get my nice IB interfaces for prototypes functional and deployed in a cross platform environment.
    I have made some good strides in figuring out the semi-documented process of Java/IB integration, and how to build (including adding external libraries) and deploy onto a server (if anyone else is interested I will share; perhaps a blog is deserved), and though I am able to run it from both Mac OSX and Linux clients on the network (the Linux interface currently looks like garbage but will work on that), when I try to run it on windows I immediately get the following error tab in General:
    An error occurred while launching/running the application.
    Title: ProfessionalTradingRAD
    Vendor: Vendor
    Category: Download Error
    Unable to load resource: http://g5.nl.imc.local:2002/cgi-bin/WebObjects/ProfessionalTradingRAD.woa/eowebs tart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp
    and in the Exception tab it reads:
    JNLPException[category: Download Error : Exception: java.io.IOException: rename failed in cache to: C:\Documents and Settings\alko\Application Data\Sun\Java\Deployment\javaws\cache\http\Dg5.nl.imc.local\P2002\DMcgi-bin\DMW ebObjects\DMProfessionalTradingRAD.woa\DMeowebstart\DMcom.webobjects.eodistribut ion._EOWebStartAction\DMwebStart\AMJavaClient.jnlp : LaunchDesc: null ]
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
    at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(Unknown Source)
    at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
    at com.sun.javaws.Launcher.downloadResources(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    It looks to me like the problem is with trying to rename the directory to a name with multiple periods, which works on UNIX but not on Windows. Is this a familiar problem? Is there any workaround/solution or any intent to fix?
    Thanks
    --Alex Kogon
      Mac OS X (10.4.6)  

    open terminal and run runinstaller again...
    don't double click and execute runinstaller....
    From Achi Cheng

  • Differences on Windows and Linux JVM about java.util.zip package

    Hello, there!
    I need some help if someone else has already face this problem.
    I have a Java server that process the bytes of a SWF File stored in the server and ouptut it to the user through a Servlet. The file was decompressed and re-compressed using the java.util.zip package (Deflater/Inflater).
    Everything works fine on Windows Server 2008 server. But now we need to migrate the server to Linux. The problem is that when I test the website now, the file seens to be corrupted.
    What really intrigues me is that everything runs normal on Windows Server configuration, when changed to Linux, the final file seens to be corrupeted... what could possible be the cause? Is there any difference between java.util.zip package on Window and Linux JVM?
    My Windows Server is:
    . Windows Server 2008 (6.0 - x86)
    . Apache 2.2.11
    . Tomcat 6.0.16.0
    . Java JDK 1.6.0_12-b04
    My CentOS Server is
    . CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
    . Apache 2.2.3
    . Tomcat 6.0.16.0
    . Java JDK 1.6.0_12-b04
    Please, if someone could give me a lead, I would appreciate very much!
    Thank you all in advance,
    CaioToOn!

    ejp wrote:
    Thank you for the answer, but no. The path is correct.That's not what he meant. Zip file/directory entries are supposed to use / as the path separator. It is possible to use \ but such Zip files will only work under Windows. You may have erred here.Ohhh, I had really missunderstood what Ray said. But, I still think that this is not the problem, since the ZIP is a single SWF file generated by Flex SDK 3.4 and compressed in the ZLIB open standard (as in page 13, at [http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf|http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf] ). This is how Flash Compiler compress the files.
    jschell wrote:
    If the above suggestions do not solve the problem...Specify in detail with the exact steps used how you determined that it was corrupted.The reason why I believe the SWF is getting corrupted is that when it is loaded by Flash Player (in the client-side) the Player throws a VerifyError: Error # 1033. The [documentation says (see error 1033)|http://help.adobe.com/en_US/AS3LCR/Flash_10.0/runtimeErrors.html] that this error means that the SWF file is corrupted.
    As I said, what intrigues me is that this work perfectly in a Windows Server 2008 server. I just had setup a CentOS server and deployed the application. The client-remains unchanged, so why could the result change?
    raychen wrote:
    I would remove the side effect you are doing and send the file straight through, with decompress and compress, the servlet. It is more likely that you have a bug in your swf processor than the zip library.
    I had already tried it when first coding, in Windows Server 2008, it had not worked.
    Thank you all for the help.
    CaioToOn!

  • Developing Java under Linux and Windows

    Dear all
    I want to know the percentage of developing Java under Linux platform and under Windows platform. is it 50 % for each or most of developers develop under one platform?
    Best Regards

    I want to know the percentage of developing Java
    under Linux platform and under Windows platform. is
    it 50 % for each or most of developers develop under
    one platform?I did a full survey of this just last week. I contacted 10,000 Java
    developers so to an accuracy of better than 1% I find that
    78% develop on Windows
    11% develop on Mac
    12% develop on Linux
    12% develop on AIX
    6% develop on 'other' platforms.------+
    119%
    You may quote me on this.Uhuh ;-)
    kind regards,
    Jo

  • CRC failed in Java and ABAP Trial Version on Linux - VMware Edition part02

    I download SAP NetWeaver 70 - Java and ABAP VMware Trial and I couldn't install it because part02 rar file has reported a checksum error.
    -  SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.rar: CRC failed in SLES10SP1_Test_Drive(2)-s003.vmdk. The file is corrupt
    Also, I think file SLES10SP1_Test_Drive.vmdk is missing from the archive files.
    Could you please, confirm that the archives in the sdn downloads are correct!

    I also have the same problem, CRC error:
    X:SAPSAP NetWeaver 70 - Java and ABAP VMware Trial.part02.rar: CRC hiba a SLES10SP1_Test_Drive(2)-s003.vmdk-ban. A fájl sérült

Maybe you are looking for

  • How do I find dynamically related files where Wordpress is not involved

    There are lots of posts about "Dynamically-related files could not be resolved because the site definition is not correct for this server" but they all seem to relate to Wordpress or other blogging software. I have recently had to upgrade from DW8 to

  • How to fix blackscreen Bootcamp after SSD install

    Hello I have an iMac mid 2011 21,5". I decided to boost it a little and that's when my issues started. Got no big problem to remove the optical drive, replace it with an SSD & add few gigs of RAM, but when I started to install windows 8.1 pro with bo

  • How to change the order of download options as per our convience in obiee

    hi frineds, How can i change the order of the download options in obiee dashboard ? like if you press download option you see download to excel download to excel 2000 download data download webpage(mhtml) how to change this order.????????

  • Huge size of ARTMAS IDOCs

    Hello gurus, We are facing an issue in trasmiting generic articles(MARA-ATTYP = 01) along with all its variants via outbound ARTMAS IDOC(Transaction BD10). Some of the articles have around 40-50 variants. When such generic articles are transmitted vi

  • Cant change passcode

    cant change my passcode and dont know my old passcode what the **** do I do?