Hi Paul,

First question: Does this have anything to do with Java? Not for the famous "go somewhere else" response, but to understand how the SQL is being run.

I don't know of a way to specifically limit things to a portion of CPU. Of course, if you have multiple processors, you could limit to a portion. In general, job priority and timeslice are the tried and true tools. However, even that won't help in certain cases. I once had a user that managed a cartesian join and nearly filled up the disk before we caught it! You can also, as you're probably aware, catch long running queries, with the assumption that long queries also eat up CPU.

Below are some links that may be helpful, and are probably about as much as we can do without an understanding of specific situations:

http://forums.systeminetwork.com/isnetforums/showthread.php?t=48740

http://www.sqlthing.com/Resources/UsingQAQQINI.htm

http://www.ibmsystemsmag.com/i5/january04/administrator/8515p1.aspx

HTH,


Joe Sam

Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400

----- Original Message ----- From: "Paul Holm" <pholm@xxxxxxxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Tuesday, May 20, 2008 1:18 PM
Subject: JDBC: SQL CPU Issue


Hi All,



We have some situations where some large SQL and SQL Join statements can
take up 95%+ of System I CPU which affects everyone else on the system.

I understand we can optimize the SQL and will be doing so but for AD HOC
scenarios where users are creating their OWN queries we need a way to
basically say:



“Don’t let this JDBC job take more than 15% of CPU”. We have looked at the
QAQQINI performance file but that doesn’t seem to solve the problem. Any
insight or advice?



Thanks, Paul Holm



Develop Web Applications in Minutes!

www.planetJavaInc.com

760-432-0600




No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.21/1454 - Release Date: 5/19/2008
7:44 AM

--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.