Infrastructure Map Server Developer

Reply
Valued Mentor
Posts: 317
Registered: ‎10-10-2003
Message 1 of 2 (1,112 Views)
Accepted Solution

FIXED Maximum number of connections?

1112 Views, 1 Replies
12-04-2011 12:57 PM

HI All,

bit of a cross-post from OSGEO, but I was testing with AIMS 2012 this time...

 

I upped the Client Connections to 300 in Serverconfig.ini but I can't get past 199 with AIMS 2012.

 

My code (modifications of Zaks), if you want to try to put this in your www folder:

 

Currently it runs 300 times but fails.  

 

<?php
include 'C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2012\www\mapviewerphp\Constants.php';


$arr[]="";

for ( $i=0; $i < 300; $i++){
MgInitializeWebTier('C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2012\www\webconfig.ini');

// Establish a connection with a MapGuide site.
$user[$i] = new MgUserInformation('Administrator', 'admin');
$siteConnection[$i] = new MgSiteConnection();
$siteConnection[$i]->Open($user[$i]);
// Create a session repository
$site[$i] = $siteConnection[$i]->GetSite();
$sessionID[$i] = $site[$i]->CreateSession();
$user[$i]->SetMgSessionId($sessionID[$i]);
// Get an instance of the required services.
$resourceService[$i] = $siteConnection[$i]->CreateService(MgServiceType::ResourceService);
$featureService[$i] = $siteConnection[$i]->CreateService(MgServiceType::FeatureService);

echo "connection :" .$i . "<br/>";

}


?>

Valued Mentor
Posts: 317
Registered: ‎10-10-2003
Message 2 of 2 (1,099 Views)

Re: FIXED Maximum number of connections?

12-06-2011 09:53 AM in reply to: gluckett

ok, in the serverconfig.ini, just increase the

SessionRepositoriesLimit = <whatever number of users>

 

gordon

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community