Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
Valued Mentor
434 Posts
74 Kudos
Registered: ‎10-10-2003
Post 1 of 2
Accepted Solution

FIXED Maximum number of connections?

1198 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/>";

}


?>

ok, in the serverconfig.ini, just increase the

SessionRepositoriesLimit = <whatever number of users>

 

gordon

 

Valued Mentor
434 Posts
74 Kudos
Registered: ‎10-10-2003
Post 2 of 2

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

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post