Infrastructure Map Server Developer

Infrastructure Map Server Developer

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

FIXED Maximum number of connections?

1181 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: 414
Registered: ‎10-10-2003
Message 2 of 2 (1,168 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!