?
Solved

JSP Excel Report Timeout

Posted on 2006-11-21
6
Medium Priority
?
339 Views
Last Modified: 2013-12-01
When running a web-layout JSP Excel report (as those in 240819.1), if the user
closes his browser or the portal times out the provider, the worker thread and
database query continue running. This eventually uses up the worker threads and
opmn is forced to restart the OC4J.

How can we avoid this?
0
Comment
Question by:rkogelhe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
anand_2000v earned 375 total points
ID: 18017937
you can set timeout  in sqlnet.ora file
Inactive Session Expiration Time Kill inactive SQLNET sessions

sqlnet.expire_time = <integer_minutes>
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18021075
Thanks for your comment.

The problem is that the query is still running... I'm not sure that this will help.
0
 
LVL 13

Assisted Solution

by:anand_2000v
anand_2000v earned 375 total points
ID: 18025646
use profiles in Oracle database
there are options of max cpu and max logical reads
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
LVL 3

Author Comment

by:rkogelhe
ID: 18039095
In fact, that might help if we could put some sort of query execution time limit in place. I know about profiles, and I suspect we can't put an elapsed time limit on them, but perhaps if we created some sort of on-logon trigger...

The problem also seems more complicated than I initially indicated. In fact on our test server, I tried running a report that went longer than the engine connect timeout, and it times out instead at three minutes. This is either the portal provider timing out or OHS timing out. The engine is correctly killed after two minutes according the the rwserver.trc, but the query continues executing. This is not the case for normal PDF reports. Also, on the production server, when this happens, we see the queue fill up and no more jobs can be executed. I'm not sure why. Still investigating. It would be nice to know exactly how the JSPs use the reports engines and how the reports engines connect to the database, but I can't find any docs on this.
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18123867
I found out there's a bug 3551449 (internal only) that is caused by the fact that calls to the reports server (the jsp will make several) do not update the running status in the reports server and so it does not know to timeout the engine.
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18192927
I verified that the bug is the cause of the problem. The patch effects only one class file, so it can be applied to the rwrun.jar even in 9.0.4.0. After applying the patch, the engines are timed out and killed as for PDF reports.
0

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month12 days, 10 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question