Infrastructure Map Server Developer

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

FIXED Maximum number of connections?

1147 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
gluckett
Posts: 368
Registered: ‎10-10-2003
Message 2 of 2 (1,134 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 familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community