[mapguide-users] MgException - MgOutofMememory - Out of memory.
Kori Maleski
kmale at telus.net
Fri Dec 15 22:31:48 EST 2006
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
_____
More information about the Mapguide-users
mailing list