Re: [mapguide-users] Unhandled exceptions in IIS web tier

2014-05-09 Thread John Galambos
Thanks for the responses.  James, I also get the same error messages as the one 
you described. I think they may be related as I managed to create some of them 
by accident when attempting to catch and work with some of those unhandled 
exceptions within the mainframe.aspx. They are preceded by another error that 
looks like: “Faulting application name: w3wp.exe, version: 7.5.7601.17514, time 
stamp: 0x4ce7afa2….”   I just noticed the following post in the Autodesk 
support site.  It looks like this or a very similar issue is considered to be a 
known issue and will hopefully get patched up soon.

http://knowledge.autodesk.com/support/infrastructure-map-server/troubleshooting/caas/sfdcarticles/sfdcarticles/Mapserver2014AppPool-Error.html


From: northtron [via OSGeo.org] [mailto:ml-node+s1560n5139435...@n6.nabble.com]
Sent: Friday, May 09, 2014 6:55 AM
To: Galambos, John
Subject: Re: Unhandled exceptions in IIS web tier

I think I recall having to set my recycle limits on the AppPool for stability 
from errors in Mapguide as well.
Fiddle Fiddle Fiddle with different setting until things calm down.

I think they could be set by memory size (as you've done) or after a certain 
time. I believe I set my Win2008R2 Server to recycle every 2 hours.


On Fri, May 9, 2014 at 9:42 AM, Berg, James [hidden 
email]/user/SendEmail.jtp?type=nodenode=5139435i=0 wrote:
I struggle with events related to mapguide because I don't really understand 
them. Several times a day we get logs like

A process serving application pool 'MapGuide25AppPool' suffered a fatal 
communication error with the World Wide Web Publishing Service. The process id 
was '17544'. The data field contains the error number. 

with the source being W3SVC. W3svc.exe is the process related to the 
application pool in IIS that represents the website that holds mapguide.

It's tricky for me to figure out what the cause of the errors are. It could be 
a memory leak in my own application (fairly likely,) so I can't blame mapguide 
for it off the bat.

Basically, whenever my application pool fails, maps stop loading until I 
manually recycle the application pool. Without knowing the exact cause, the 
only workaround I've come up with is to configure my application pool to 
automatically recycle whenever it accumulates a certain amount of virtual 
memory. I've got it set to recycle at 800 megabytes, but I might decrease that 
number if problems persist.

The hope is that frequent recycling will prevent errors.

It's also important to note that my application does not use InProc session 
handling in web.config. That's the default setting and application pool 
recycling would reset any sessions (very bad.)  Instead I use the StateServer 
setting. That way session aren't reset upon application pool resets.
___
mapguide-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=5139435i=1
http://lists.osgeo.org/mailman/listinfo/mapguide-users


___
mapguide-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=5139435i=2
http://lists.osgeo.org/mailman/listinfo/mapguide-users

If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/Unhandled-exceptions-in-IIS-web-tier-tp5139328p5139435.html
To unsubscribe from Unhandled exceptions in IIS web tier, click 
herehttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5139328code=am9obi5nYWxhbWJvc0B2YW5jb3V2ZXIuY2F8NTEzOTMyOHw4Nzc1NzM0MDA=.
NAMLhttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Unhandled-exceptions-in-IIS-web-tier-tp5139328p5139466.html
Sent from the MapGuide Users mailing list archive at Nabble.com.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Unhandled exceptions in IIS web tier

2014-05-08 Thread John Galambos
Is anyone else seeing unhandled web tier exceptions in a Windows install? We
are running AIMS 2014 on Windows 2008 and since mid-April, we are seeing
unhandled errors fairly frequently in the Event Viewer. I think this may not
be an AIMS specific issue.

Here is an example event viewer message: 


--

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 5/1/2014 11:31:05 AM 
Event time (UTC): 5/1/2014 6:31:05 PM 
Event ID: e50c4374ccad40eeb9a91af040f39d7b 
Event sequence: 226 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
Application domain:
/LM/W3SVC/1/ROOT/mapserver2014/mapviewerajax-1-130434293279780670 
Trust level: Full 
Application Virtual Path: /mapserver2014/mapviewerajax 
Application Path: C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension 2014\www\mapviewernet\ 
Machine name: 
 
Process information: 
Process ID: 7972 
Process name: w3wp.exe 
Account name: IIS APPPOOL\MapServer2014AppPool 
 
Exception information: 
Exception type: MgUnclassifiedException 
Exception message: Problem:\nThe application encountered a problem and
could not finish the operation you just requested properly.\n\nSolution:\nIf
it\'s the first time you met this problem, try again or restart the
application / session; otherwise, describe the steps to reproduce this
problem to the server administrator for suggestions.
- MgException_GetDetails__SWIG_0() line 202 file MgFoundationApi_wrap.cpp


 
 
Request information: 
Request URL:
http:///mapserver2014/mapviewerajax/ajaxviewer.aspx?SESSION=c1117804-d15e-11e3-8000-005056a4008b_en_WEBLAYOUT=Library:/Map/Layouts/Layout.WebLayout
 
Request path: /mapserver2014/mapviewerajax/ajaxviewer.aspx 
User host address: 1*
User:  
Is authenticated: False 
Authentication Type:  
Thread account name: IIS APPPOOL\MapServer2014AppPool 
 
Thread information: 
Thread ID: 22 
Thread account name: IIS APPPOOL\MapServer2014AppPool 
Is impersonating: False 
Stack trace:at
OSGeo.MapGuide.FoundationApiPINVOKE.MgException_GetDetails__SWIG_0(IntPtr
jarg1)
   at OSGeo.MapGuide.MgException.GetDetails()
   at ASP.ajaxviewer_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in c:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension 2014\www\mapviewernet\mainframe.aspx:line 550
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

--



Based on the stack trace,  it looks like the GetDetails and GetMessages
methods of some MgException objects are themselves throwing exceptions. I've
hacked in some log4net logging into the mainframe.aspx to get a look at
these exceptions before these methods are called. Pasted below is the output
of exception.GetString() method, before the GetDetails method was called
(and ended up throwing an unhandled exception).

---

2014-05-08 15:40:17,892 [21] INFO  MapGuide -
OSGeo.MapGuide.MgSessionExpiredException: Session has expired or is invalid.
Please log in again.
The session (ba4c5d92-d701-11e3-8000-005056a46d9b_en_*) has expired.
- MgSiteManager.GetConnectionProperties() line 339 file
f:\build\ims2014_knight\build_76.1\ent\os\common\mapguidecommon\Services/SiteManager.cpp

   at OSGeo.MapGuide.MapGuideCommonApiPINVOKE.MgSiteConnection_Open(IntPtr
jarg1, IntPtr jarg2)
   at ASP.ajaxviewer_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in c:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension 2014\www\mapviewernet\mainframe.aspx:line 87

---


This is happening on two separate load balanced environments.  Is anyone
else seeing similar messages?





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Unhandled-exceptions-in-IIS-web-tier-tp5139328.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Limiting number of results from Maestro QueryFeatureSource or mapagent SELECTFEATURES?

2014-04-22 Thread John Galambos
Fantastic--thanks Jackie!

Is it possible to somehow push this limit all the way through to the server
side? Perhaps I'd better explain what I'm trying to do.

We have a rather large map (500+) layers and are trying to tune it to
improve performance. As part of this, I've written a script (using the
Maestro API) that reads the map definition, and then isolates layers one at
a time in a runtime map, and records the amount of time it takes to render
random locations on this layer at the display scales defined for the layer.
To make sure we're rendering locations that actually display features for
the layer, I query 15-20 features from the layer in advance, and then zoom
to the location of the centroid of each feature. I am doing this via the
QueryFeatureSource API. I believe that because the limit doesn't get pushed
to the server, in effect I am querying all of the features for each layer in
the map, and  they're all coming across the wire in XML where currently the
script only ends up deserializing as many as the limit. It is working right
now, but it would be nice if it was a little more efficient. I'm wondering
if there is a way to avoid bringing all the features across without having
to get into feature class specific filters etc.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Limiting-number-of-results-from-Maestro-QueryFeatureSource-or-mapagent-SELECTFEATURES-tp5135715p5136552.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users