Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java Heap Error while downloading the file from clooud to local server

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Java Heap Error while downloading the file from clooud to local server

    We have developed a Java component by using the Webservices.

    Usages: This component will send a request to Cloud based Server. (Request is based on SOAP Messages)
    Webservice request will send the FileUniuqeID and in response we are getting the file contents and downloading the file from cloud server to local server.

    Problem Scenario: This java component are working fine for file size <250 MB. The moment we get the size >250 MB, our component are getting fail and throwing the java heap memory full error and terminate.

    Requirement: Java component able to download the max 1GB file from cloud server.


    Existing App Server hardware configuration:
    Window Standard Edition
    AMT Processor
    4 GM RAM.

    Technical Queries:
    Can we increase the 4GB to nnGB and download the max 1GB from cloud? (What would be RAM needed to download the 1gb file from cloud?)
    What would be max java heap memory configured in latest JDK version? Is there any limit?
    What kind of hardware / software require to download the large file (1GB) from cloud ?
    Is it a problem of web service? (but error was related to java heap memory full)


    Kindly provide the solution related to java heap error.

    Deepak


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java Heap Error while downloading the file from clooud to local server

    Increase the maximum heap size using the -Xmx VM option, presuming you are not hardware limited. Alternatively, don't save it all in memory - write it out to a file or some alternative

Similar Threads

  1. local NTP server
    By conanlive in forum Java Networking
    Replies: 1
    Last Post: August 12th, 2011, 04:46 AM
  2. Replies: 1
    Last Post: June 7th, 2011, 11:53 AM
  3. Java heap space error
    By Loki in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 27th, 2010, 10:47 PM
  4. Error in validation.xml file while deploying in server
    By venkat.ravala in forum Web Frameworks
    Replies: 0
    Last Post: January 16th, 2010, 08:56 AM

Tags for this Thread