Solved

JSP Excel Report Timeout

Posted on 2006-11-21
6
331 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
  • 4
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
anand_2000v earned 125 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 125 total points
ID: 18025646
use profiles in Oracle database
there are options of max cpu and max logical reads
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now