[mapguide-users] MgException - MgOutofMememory - Out of memory.
Bruce Dechant
bruce.dechant at autodesk.com
Sun Dec 17 12:36:36 EST 2006
Kori,
Thanks for the update. I'll take a look at the source code and see if there is something that could cause what you are seeing from the information you have given.
Thanks,
Bruce
-----Original Message-----
From: Kori Maleski [mailto:kmale at telus.net]
Sent: Sat 12/16/2006 12:20 AM
To: users at mapguide.osgeo.org
Cc:
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
I watched it for over 3 hours and observed the point of the error.
Most exciting Friday night ever.
I don't think it is a memory error - the memory usage stayed relatively
flat. The increase over time ended up being minimal.
I think there is a loss of connectivity just prior that results in the error
being thrown. Perhaps the site connection expires - and the way the
function is written it does the next GetTile but not without rights.
Hard to tell which is cause and which is effect.
I just checked the Access log and that confirms it.
Before error:
<2006-12-15T22:21:39> Administrator
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
<2006-12-15T22:21:41> Administrator
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
<2006-12-15T22:21:42> Administrator
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
Error thrown:
<2006-12-15T22:21:43> Administrator
GetTile.1:4(MgMap,Map,tileCol,tileRow) Failure
If I try to continue past the error by restarting my application but not
restarting the MapGuide Server service (notice the Admin account is not
present and there is no CreateSession etc):
<2006-12-15T22:23:45>
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
<2006-12-15T22:23:45>
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
<2006-12-15T22:23:45>
GetTile.1:4(MgMap,Map,tileCol,tileRow) Success
If I restart the MapGuide Service:
<2006-12-15T22:49:24> Administrator CreateSession.1:0()
Success
<2006-12-15T22:49:24> Administrator
GetResourceContent.1:2(MgResourceIdentifier,) Success
<2006-12-15T22:49:29> Administrator
GetResourceContent.1:2(MgResourceIdentifier,) Success
...
It does the initial config correctly.
In my ServerConfig.ini I have the following settings:
SessionTimerInterval = 400
SessionTimeout = 86400
I do an HTTP call within the 400 second interval to keep the session fresh.
I will continue to review my code to see if I am missing something.
Is the session expiring or failing in some manner possibly?
Cheers and thanks,
Kori
-----Original Message-----
From: Kori Maleski [mailto:kmale at telus.net]
Sent: December 15, 2006 7:32 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
I am using MapGuide Enterprise Service Pack 1 for this test. The more
recent Open build may fare better. I am still in the process of getting a
machine up.
Increasing the paging file didn't work. It still threw the Out of memory
error. I missed the actual occurrence of the error - so I am not sure if
the memory usage peaked unusually high - I don't think it did.
It only got to 336000 k.
If I tried to re-run my process I got the same error.
If I restarted MapGuide Service, it ran fine.
So I am not sure if it is truly a memory error or a loss of connectivity
before.
I will keep running and documenting over the weekend.
Cheers,
The sequence of errors according to the log file:
<2006-12-15T19:09:31> Administrator
Error: Failed to stylize layer: 100K_Urban_California
An unclassified exception occurred.
StackTrace:
- MgStylizationUtil.StylizeLayers line 993 file
c:\build_tux_area\mgdev\server\src\services\mapping\StylizationUtil.cpp
Failed to stylize layer: 100K_Urban_California
An unclassified exception occurred.
<2006-12-15T19:09:31> Administrator
Error: Failed to stylize layer: 2M_ocean_mask_California
Out of memory.
bad allocation
StackTrace:
- MgStylizationUtil.StylizeLayers line 993 file
c:\build_tux_area\mgdev\server\src\services\mapping\StylizationUtil.cpp
Failed to stylize layer: 2M_ocean_mask_California
Out of memory.
bad allocation
<2006-12-15T19:09:32> Administrator
Error: Out of memory.
bad allocation
StackTrace:
- MgTileServiceHandler.ProcessOperation line 83 file
c:\build_tux_area\mgdev\server\src\services\tile\TileServiceHandler.cpp
- MgOpGetTile.Execute line 97 file
c:\build_tux_area\mgdev\server\src\services\tile\OpGetTile.cpp
- MgServerTileService.GetTile line 85 file
c:\build_tux_area\mgdev\server\src\services\tile\ServerTileService.cpp
- MgServerTileService.SetTile line 119 file
c:\build_tux_area\mgdev\server\src\services\tile\ServerTileService.cpp
- MgByteSink::ToFile line 245 file
c:\build_tux_area\mgdev\common\service\data\ByteSink.cpp Out of
memory.
bad allocation
-----Original Message-----
From: Bruce Dechant [mailto:bruce.dechant at autodesk.com]
Sent: December 15, 2006 6:52 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
Kori,
Can you clarify which version of MapGuide you are using? This will help
identify whether some of the memory leak issues have been fixed or have not
been fixed yet in the build you are using.
Thanks,
Bruce
-----Original Message-----
From: Kori Maleski [mailto:Kori.Maleski at websoftdev.com]
Sent: Fri 12/15/2006 6:24 PM
To: users at mapguide.osgeo.org
Cc:
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of
memory.
The memory usage does increase slightly overtime.
Over a 45 minute time period it went from an average of 291000 to 301000 k -
that's about 2000 tiles. It is still increasing slowly.
I will be running it over the weekend and monitor the memory usage as best I
can.
I can specify my starting tile column when I restart, so I do not have to
redo any processing when it throws the error.
Thanks Walt,
Cheers,
Kori
_____
From: Walt Welton-Lair [mailto:walt.welton-lair at autodesk.com]
Sent: December 15, 2006 4:19 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
Does the server memory usage slowly increase with time? What is it after
generating 1000 / 2000 / 3000 tiles? If you're generating tiles
sequentially the memory should remain relatively flat. I wouldn't be
surprised if there are still some leaks we have to track down.
Walt
_____
From: Kori Maleski [mailto:Kori.Maleski at websoftdev.com]
Sent: Saturday, December 16, 2006 1:12 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
Upped the page file size. Hopefully that is the issue.
Cheers,
_____
From: Kori Maleski [mailto:Kori.Maleski at websoftdev.com]
Sent: December 15, 2006 11:05 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MgException - MgOutofMememory - Out of memory.
Here is the stack trace on that:
<2006-12-15T05:10:54> Administrator
Error: Failed to stylize layer: 100K_Urban_California
An unclassified exception occurred.
StackTrace:
- MgStylizationUtil.StylizeLayers line 993 file
c:\build_tux_area\mgdev\server\src\services\mapping\StylizationUtil.cpp
Failed to stylize layer: 100K_Urban_California
An unclassified exception occurred.
<2006-12-15T05:10:54> Administrator
Error: Failed to stylize layer: 2M_ocean_mask_California
Out of memory.
bad allocation
StackTrace:
- MgStylizationUtil.StylizeLayers line 993 file
c:\build_tux_area\mgdev\server\src\services\mapping\StylizationUtil.cpp
Failed to stylize layer: 2M_ocean_mask_California
Out of memory.
bad allocation
<2006-12-15T05:10:54> Administrator
Error: Out of memory.
bad allocation
StackTrace:
- MgTileServiceHandler.ProcessOperation line 83 file
c:\build_tux_area\mgdev\server\src\services\tile\TileServiceHandler.cpp
- MgOpGetTile.Execute line 97 file
c:\build_tux_area\mgdev\server\src\services\tile\OpGetTile.cpp
- MgServerTileService.GetTile line 85 file
c:\build_tux_area\mgdev\server\src\services\tile\ServerTileService.cpp
- MgServerTileService.SetTile line 119 file
c:\build_tux_area\mgdev\server\src\services\tile\ServerTileService.cpp
- MgByteSink::ToFile line 245 file
c:\build_tux_area\mgdev\common\service\data\ByteSink.cpp Out of memory.
bad allocation
_____
<http://www.websoftdev.com/>
<http://www.websoftdev.com/>
<http://www.websoftdev.com/>
Kori Maleski
Senior Application Developer
WEBSOFT DEVELOPERS, INC.
P: (530) 759-8754 ext 114
F: (530) 759-0923
kori.maleski at websoftdev.com
_____
_____
From: Kori Maleski [mailto:Kori.Maleski at websoftdev.com]
Sent: December 15, 2006 10:29 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] MgException - MgOutofMememory - Out of memory.
Hi all,
I am in the process of error trapping a tiling process in an application
using the MgTileService Class.
I am sequentially executing the GetTile function over a long duration.
I am encountering a "Out of memory." Error after 3.5 hours of processing
time on trial runs.
During each trial:
- The error occurred after the same length of time
- 5000 to 7000 tiles have been retrieved (the difference I am
assuming being a result of the variance in the amount of features required
to build the tile)
- the last file being written is 0 kb ( I am assuming it was opened
for writing as the error occurred)
- the MapGuide Server service was running but non-responsive and
had to be restarted
Is this error a result of the following:
- file I/O write issue?
- too many tile requests in the queue or being made too often?
- Something specific to the RAM on the machine I am running the
process on?
Is there a way to trap this and recover?
Anybody have any recommendations?
Cheers,
_____
<http://www.websoftdev.com/>
<http://www.websoftdev.com/>
<http://www.websoftdev.com/>
Kori Maleski
Senior Application Developer
WEBSOFT DEVELOPERS, INC.
P: (530) 759-8754 ext 114
F: (530) 759-0923
kori.maleski at websoftdev.com
_____
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 16850 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide_users/attachments/20061217/a8d5a2d0/attachment.bin
More information about the Mapguide_users
mailing list