Re: How to troubleshoot heavy RAM consumption
- From: Tim Gorman <tim@xxxxxxxxx>
- To: nkodner@xxxxxxxxx
- Date: Tue, 23 Mar 2010 12:07:46 -0600
|
Neil, The use of expensive sorts, hash-joins, etc are not always coded into the application, so you don't necessarily have to go back to developers or power-users. Instead, first take a look at the most-expensive SQL and see if there is a way to improve the execution plan without changing the SQL. It is possible that the way to convert a huge SORT-MERGE join or HASH-JOIN fed by FULL table scans into an unobtrusive NESTED LOOPS join is to add an appropriate index or two. It's not always that easy, but it is true often enough to make it worth looking into. Often, the solution is more complex than that. Ultimately, this usually means getting elbow-deep in the logic of the SQL statement, which can be laborious but which is usually well worth the effort. Everyone's method vary, but instead of using a automatic formatting program like TOAD, consider simply re-formatting and "pretty-fying" the SQL statement by hand, in an editor (I like "vi"). By the time you finish re-arranging the SQL text to format the way you like, you'll be intimately familiar with the logic of the SQL statement and able to start making an intelligent and focused investigation for solutions. I've had folks who watch me do this editing accuse me of being anal-retentive and behind the times (and I have no argument with either), but when I finish editing (i.e. big SQL statements sometimes take an hour or more) and I start discussing what the SQL statement is doing versus what the developer probably intended, the jokesters usually shut up and start listening. And, at the end of the process, it is easier to begin testing different solutions as the logic of the SQL is fresh and familiar. So, if you can identify the SQL that the heavy users of PGA are running, see if there is anything you can do to improve it. Hope this helps... Tim Gorman consultant -> Evergreen Database Technologies, Inc. postal => P.O. Box 630791, Highlands Ranch CO 80163-0791 website => http://www.EvDBT.com/ email => Tim@xxxxxxxxx mobile => +1-303-885-4526 fax => +1-303-484-3608 Lost Data? => http://www.ora600.be/ for info about DUDE... Neil Kodner wrote: I've had no problem identifying the heavy PGA users but how do I get them to either use less RAM or free the RAM back to the os any faster? That part I'm stuck with. Given our current system has been running for a few years, I can't imagine going back and telling the devs to get rid of the sorts, hj, etc.-- http://www.freelists.org/webpage/oracle-l |
- References:
- How to troubleshoot heavy RAM consumption
- From: Neil Kodner
- Re: How to troubleshoot heavy RAM consumption
- From: Neil Kodner
- Re: How to troubleshoot heavy RAM consumption
- From: Neil Kodner
- How to troubleshoot heavy RAM consumption
Other related posts:
- » How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Taral Desai
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Jared Still
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - przemolicc
- » Re: How to troubleshoot heavy RAM consumption - Neil Kodner
- » Re: How to troubleshoot heavy RAM consumption - Tim Gorman
- » Re: How to troubleshoot heavy RAM consumption - Jared Still