Infrastructure Map Server Developer

Infrastructure Map Server Developer

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

FIXED Maximum number of connections?

1193 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
gluckett
Posts: 426
Registered: ‎10-10-2003
Message 2 of 2 (1,180 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

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.