• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Cannot allocate memory  RSS feed

 
Preeti Prakash
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My program reads from the database and writes to a file.

1. I am running this on Weblogic 8.1
2. Linux OS.

This program has worked many times before without throwing this exception and is also working now (without me making any changes)
I would like to find the root cause of the problem to ensure that this exception is not thrown again.

The java.io.IOException is thrown while writing to the file. Can anyone tell me what are the possible causes for this.

Thanks.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Preeti,

Look in your startWebLogic/startManagedWebLogic scripts for this parameter:

This variable overrides the standard memory arguments passed to Java. The example above specifies 128MB of initial memory size and 256MB as the maximum memory size. Try to increase the memory, but setting both parameters to 512 should be more than enough.
Regards.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
 
Preeti Prakash
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Valentin.
Like Joe Ess says, this is a duplicate topic. (Sorry ) I have put in more details in the other forum (I/O and Streams).
Thanks.

[ May 19, 2005: Message edited by: Preeti Prakash ]
[ May 19, 2005: Message edited by: Preeti Prakash ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!