Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tridion CMS & Oracle: ORA-01000: maximum open cursors exceeded

hopefully someone can help me here.

We use Tridon CMS to manage a website hosted on jBoss and Apache.

We've been using SDL Tridion 5.3 for 5 years now and suddenly we have encountered an error with the Oracle database behind it. Most of our content is served as normal jsp pages from the file system but we have some components which are served via a call to Tridion's Java API which returns an html snippet from the Oracle database.
Recently we noticed that some of these html snippets weren't being served and on inspection of the server log files we found that the Oracle error ORA-01000: maximum open cursors exceeded was being generated.
Our max cursors was set to 300 so we increased it to 350 to see if it helped but it didn't.
Monitoring the active Oracle sessions, we could see that a number of sessions had reached the max cursors so we restarted the app server. This appeared to help, but only temporarily. The number of sessions reaching the max cursors threshold is gradually increasing again. Yesterday afternoon soon after the restart there were around 30 sessions with max cursors, this morning it's 150.

Obviously something has changed recently to cause this, but we're not sure what. The Oracle database is not something we generally have access to and certainly not something we make changes to directly - all day-to-day database operations happen via the Tridion API. We haven't done anything out of the ordinary as far as Tridion development and publishing is concerned so nothing different to what we've been doing for the past few years there. Traffic volumes to our website are relatively low at the moment (and have been significantly higher in the past) so we're pretty sure there's not an issue there.

One thing I have just been told that may or may not be connected - shortly before the issue arose we failed over one of our internal firewalls, but we can't think of a way this could cause the issue we're seeing. Other than the firewall failover we can't find any other changes to the connectivity between the app server and the database.

Does anyone have any suggestions of where we might look for a solution here? We've just opened a support ticket with SDL but at the moment they're just as bemused as us.

Thanks.

like image 873
ThatITBloke Avatar asked Aug 17 '12 09:08

ThatITBloke


People also ask

Is Tridion a CMS?

SDL Tridion is the content management system (CMS) used by the Yale School of Medicine Office of Communications to manage all of the sites under its purview. (A CMS is a program which allows users to organize, edit, and publish web content.)

What is Tridion application?

Easily manage and deliver large volumes of multilingual content to websites and other digital touchpoints with our web content management (WCM) system.

Who uses SDL Tridion?

Companies using SDL Tridion for Content Management include: Wells Fargo & Company, a United States based Banking and Financial Services organisation with 246577 employees and revenues of $81.75 billion, Hewlett-Packard, a United States based Manufacturing organisation with 51000 employees and revenues of $63.49 billion ...


1 Answers

We have experienced similar issue in the past with IBM WebSphere. In our scenario, the root cause of the problem is that the firewall time out for idle or stale connections and dropping connections between the application server and the DB because the timeout at the firewall is lower than the AppServer connection cleanup timeout.

Its may be worthwhile to check this first and make sure this is not the root cause, it took a while to figure this out for us since we are spending lot of time analyzing the application logs and Tridion api etc. I assume that jBoss has similar setting like WebSphere.

The solution we have implemented is to set the Unused Timeout lower than the timeout setting on the firewall. This allowed WebSphere Application Server can clean up its unused connections before the firewall drops them.

like image 121
Ram G Avatar answered Sep 23 '22 17:09

Ram G