Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1687 closed defect (fixed)

A DBXML exception happens under stress test

Reported by: hubu Owned by: hubu
Priority: medium Milestone: 2.3
Component: Resource Service Version: 2.2.0
Severity: critical Keywords: DBXML
Cc: bruce dechant External ID: 1381089

Description (last modified by brucedechant)

After create about 150 sessions, MgServer can’t create session anymore. And we will get many errors like below:

Error: An exception occurred in DB XML component.
Error: DB_RUNRECOVERY: Fatal error, run database recovery
StackTrace:
  - MgSiteServiceHandler.ProcessOperation() line 83 file SiteServiceHandler.cpp
  - MgOpCreateSession.Execute() line 109 file OpCreateSession.cpp
  - MgServerSiteService.CreateSession() line 762 file ServerSiteService.cpp
  - MgServerResourceService.CreateRepository() line 541 file ServerResourceService.cpp
  - MgSessionRepository.MgSessionRepository() line 76 file SessionRepository.cpp

This is a regression since we implemented "File-per-Session". After create 150 sessions, the DBxml is locked(hang up), because it can’t allocate memory anymore.

We need to tune DBXML configuration, reduce the log buffer and cache size for session repository.

Attachments (1)

DBXML-fix-update.patch (2.7 KB ) - added by hubu 13 years ago.
Fix of this defect

Download all attachments as: .zip

Change History (7)

by hubu, 13 years ago

Attachment: DBXML-fix-update.patch added

Fix of this defect

comment:1 by hubu, 13 years ago

Resolution: fixed
Status: newclosed

comment:2 by hubu, 13 years ago

Fixes for trunk submitted in r5779

comment:3 by brucedechant, 13 years ago

Description: modified (diff)

comment:4 by brucedechant, 13 years ago

Fixed for sandbox/adsk/2.2gp r5829

comment:5 by zspitzer, 13 years ago

Can this fix be applied to the 2.2 branch?

comment:6 by hubu, 13 years ago

Zac, this fix is not applied to 2.2 branch. This bug is a regression introduced by fix of http://trac.osgeo.org/mapguide/ticket/1552. As I know, on 2.2 branch, we don't have this regression.

Note: See TracTickets for help on using tickets.