Article View: borland.public.jbuilder.java.api
Article #1000Re: OutOfMemoryError
From: Oliver Fels
Date: Wed, 03 Jul 2002 15:51
Date: Wed, 03 Jul 2002 15:51
27 lines
1900 bytes
1900 bytes
Alan Shiers wrote: > Hi there, > > I created a client/server project. The server-side app allows the > uploading of files from the client app. Today I tried to upload a > rather large zipped file (60Mb) and this caused the JVM to display an > OutOfMemoryError message on the console. Needless to say the file never > did get uploaded. > > Is there a restriction as to how much data the JVM will allow. I > realize the 60Mb file is big, but I didn't think that this should prove > to be a problem. Aside from reducing the size of the file is there > something else I can do to prevent the error from happening in the > future? > > Alan Yes, the JVM has default parameters for the heap. But you can set these parameters: type: "java -X" to get the non standard parameters. I run the jvm almost with the parameters -Xms128M -Xmx256M Oliver
Technical Details
Message-ID:
<3D231D6A.7010001@gmx.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!supernews.com!newsfeed.news2me.com!logbridge.uoregon.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3D20CC5D.B70473C9@hfx.eastlink.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,28eab50e784856ac X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-07-03 08:55:40 PST Message-ID: <3D231D6A.7010001@gmx.de> Date: Wed, 03 Jul 2002 17:51:06 +0200 From: Oliver Fels <oliver.fels@gmx.de> User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.0.0) Gecko/20020530 X-Accept-Language: de-de, de-at, de-ch, en-us MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: OutOfMemoryError References: <3D20CC5D.B70473C9@hfx.eastlink.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.224.133.47 X-Trace: dnews 1025711468 62.224.133.47 (3 Jul 2002 08:51:08 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!supernews.com!newsfeed.news2me.com!logbridge.uoregon.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews