Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-07-2007, 03:36 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Question How can I solve out Of Memory Error on RedHat 4 Update 5 Server

I'm new on linux server. One of our clients (which is a bank) use RedHat linux version 4 update 5 server. Our client got out of memory error while try to get excell reports which size bigger that 60000. There would be two reason for this error. Excell part and linux part. In excell part I solved programatically.
I changed the program like that : if the size of data bigger that 60000 than there would be more that one excell sheet. So every sheet has data which are lesser than 60000. (Because of excell not supported a data more that 65536 I divided the data into separate sheets)

But it doesn't solve the linux part. Because till the report finishing, all the datas are stored on server the cashe.

I'm just want to learn, whether there is any way to improve cashing mechanism of linux or preventing not to take out of Memory error in the operation of bigger.
I'm now reading linux vm management, But if any of you give me better idea to solve the problem I'd be very happy.
Thank you very much
Old 12-07-2007, 07:15 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,192

Rep: Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759
unless the application is doing something whacky in allocation,adding Swap space should alleviate the problem.
There are workloads that don't like the changes 2.6 introduced, but more memory (best) or more swap (affordable, if somewhat slow) should resolve all those.

Look at your SAR data to see what is actually happening with the memory/swap.
Old 12-08-2007, 07:45 AM   #3
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
If I've understood correctly, the bank has RH Linux (Not RHEL!) as a server, and this is some way serves (Samba? Nfs?) to some clients which probably aren't Linux boxes (Windows?).

RH 4 must be from some time in the late 1990s (this is where it is important whether it is RH or RHEL...RHEL 4 would be only a couple of years old and would probably still be supported).

I'm assuming, though you don't say this, that you are not trying to open these 'excell' files on the server. (If you are, what with? Excel doesn't run on Linux. Wine??? On the server? OO?)

The out of memory error occurs on the server and not the client.

You comment on reducing the size of the data. I think that you mean the number of data elements and not the size of an individual data element, but I'm not sure.

If I've guessed any of this right, then:

-You need to say how you are serving these files. I'm guessing samba, but you should confirm this and say what version, just in case its relevant and whether there are any error messages from the file server program.

-I see no real evidence that caching is in any way involved. It may be an 'out of virtual memory' problem. It may be useful to say:
-how much physical memory you have
-ditto, swap space
and post the output from "vmstat 10 10" to give an idea of what you are seeing going on.

Also, please try to post the actual error message.
Old 12-10-2007, 03:20 AM   #4
LQ Newbie
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0

Hello Salasi,
I searched the reason of the error. This error is thrown from the program as java error. This program is written PL/SQL. For creating the excell file hssfworkbook object is used . When I searched for this object I saw that for preventing out of memory error, I have to increase JVM heap size.
So I will try this.
Because as I said before on linux part there isn't error message in the logs. (As they said to me . Actually I don't have error logs on linux part) So the problem most probably doesn't related with linux.

Thank you all for your help.
And sorry for taking your time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Out Of Memory error in Iplanet Web Server rajaniyer123 Solaris / OpenSolaris 4 09-17-2007 12:03 PM
Acer Aspire 5004WLMi, can bios update solve smart battery problem? Shioni Linux - Laptop and Netbook 1 08-12-2006 11:12 PM
Help!!! memory exhausted error on RedHat ES V3U6 cojo Linux - Software 4 06-01-2006 09:00 AM
LXer: Seven Ways To Solve Firefox Memory Headaches LXer Syndicated Linux News 0 02-16-2006 11:16 PM
Redhat Update Proxy server MrJoshua Linux - General 3 04-02-2003 04:58 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration