- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- SQL transactions (creating/dropping indexes) every...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 07:11 AM
03-26-2004 07:11 AM
I just installed an instace of SIM at a location where it is only monitoring five Proliant servers and sending ping's to three Cisco devices. The SQL admin here has pointed out that there is a rediculous amount of SQL activity being generated. The following, which includes several selects and inserts and creates and drops an index, happens every 30 seconds:
-----------------------------
insert into taskQueryContents select DISTINCT notices.NoticeId, devices.deviceKey, 4, 2 from devices JOIN notices ON devices.deviceKey = notices.deviceKey and notices.NoticeType = 1 LEFT OUTER JOIN deviceProtocolInfo ON devices.deviceKey = deviceProtocolInfo.deviceKey WHERE ( deviceProtocolInfo.DMI > 0 OR deviceProtocolInfo.SNMP > 0 OR deviceProtocolInfo.WBEM > 0 )
insert into taskQueryContents select DISTINCT notices.NoticeId, devices.deviceKey, 3, 2 from devices JOIN notices ON devices.deviceKey = notices.deviceKey and notices.NoticeType = 1
insert into taskQueryContents select DISTINCT notices.NoticeId, devices.deviceKey, 72, 2 from devices LEFT OUTER JOIN notices ON devices.deviceKey = notices.deviceKey LEFT OUTER JOIN NoticeType ON notices.noticeType = NoticeType.noticeType JOIN consolidatedNodeAuths ON devices.mxGuid = consolidatedNodeAuths.NodeId and consolidatedNodeAuths.userID = '00000000864162de0000000400000006' WHERE ( NoticeType.typeIdStr = 'hp.nodestatus.unreachable' ) AND ( ( devices.productType != 7) )
insert into taskQueryContents select DISTINCT notices.NoticeId, devices.deviceKey, 48, 2 from devices LEFT OUTER JOIN notices ON devices.deviceKey = notices.deviceKey JOIN consolidatedNodeAuths ON devices.mxGuid = consolidatedNodeAuths.NodeId and consolidatedNodeAuths.userID = '00000000864162de0000000400000006' WHERE ( notices.NoticeSeverity = 5 OR notices.NoticeSeverity = 4 OR notices.NoticeSeverity = 3 )
go
CREATE INDEX PK_taskcontents ON taskQueryContents(TaskId)
go
select TaskId, NoticeId, DeviceKey, sum(OldFlag) from taskQueryContents group by Noticeid, TaskId, DeviceKey having sum(OldFlag) != 3 order by TaskId
go
drop index taskQueryContents.PK_taskcontents
go
delete from taskQueryContents where OldFlag = 1
go
update taskQueryContents set OldFlag= 1
go
----------------------------------------
Does anyone know what the heck this is doing and why it needs to do it so often?
Thanks,
- Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 08:09 AM
03-26-2004 08:09 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
The task system is checking to see if new events or systems now meet the list results for tools such as automatic event handling, or the initial data collection task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 01:38 AM
03-29-2004 01:38 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
I installed the SIM database on the development server used by this group. They tell me that the other applications on this server are noticably slower since SIM has been running. Also, one day after starting the application, the transaction log was 2G.
Is there any way to make this more efficient?
Thanks,
- Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:54 AM
03-29-2004 03:54 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
A couple of things. First your transaction log. Known problem (can turn out to be Big problem). Use the advice here from James Kennedy to correct:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=423686
Now for your original posted problem. I don't think you should accept this as standard procedure. I'll write more on that in a few minutes.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 04:15 AM
03-29-2004 04:15 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
The "every 5 or 10 minutes" as you mention are the defaults for a few of the polling operations. They can be scheduled more frequently by the user, all the way up to every 1 minute. Other tasks can also be created with a frequency ranging from 1 minute all the way up as well as scheduling an operation to begin at a particular point in time.
Geoff Schunicht who answered earlier in this thread is one of the architects on the Systems Insight Manager project. In a further conversation he indicated that this was actually (although counter-intuitive) the most efficient method they had worked out to perform the operation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 04:38 AM
03-29-2004 04:38 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
First, the developers might want to consider a more efficient way of rebuilding the index. Take a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_05_271x.asp
Second, what happens if the last update statement fails?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 06:48 AM
03-29-2004 06:48 AM
SolutionAs to the transaction log, try setting the database recovery model to simple via SQL enterprise manager, that will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 06:53 AM
03-29-2004 06:53 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
- Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:01 AM
03-29-2004 07:01 AM
Re: SQL transactions (creating/dropping indexes) every 30 seconds?
Tim