NetTalk Central

Author Topic: Webserver does not work with large numbers of users  (Read 6147 times)

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Webserver does not work with large numbers of users
« on: February 05, 2015, 06:22:16 AM »
Hi, I have a problem with the webserver.
When a large number of users working on the webserver system stops working and you have to restart.

Any Idea?

Agustín

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Webserver does not work with large numbers of users
« Reply #1 on: February 05, 2015, 07:00:07 AM »
thousands of ideas.

But perhaps first define what a "large number" is, and also what NetTalk version you are using.
And maybe something about the app - what database you are using and so on.

cheers
Bruce

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Webserver does not work with large numbers of users
« Reply #2 on: February 05, 2015, 07:38:34 AM »
* 100 users per server
* NT 8.28
* We use Database: MSSQL and MySQL
* They network lan and internet
* Windows 2008 server.

Anything else?

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Webserver does not work with large numbers of users
« Reply #3 on: February 05, 2015, 09:01:39 AM »
i have 1400 user per server  with MSSQL and Windows 2008 server, without problem, 3 years running.

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Webserver does not work with large numbers of users
« Reply #4 on: February 05, 2015, 10:33:04 AM »
100 users per server access (approximately)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Webserver does not work with large numbers of users
« Reply #5 on: February 05, 2015, 01:10:36 PM »
Hi Agustin

The number of users you can support on a web server depends primarily on:

  • The capacity of the server (CPUs, Ram, network speed)
  • The number of user transactions per second
  • The processing that occurs per transaction
  • Processing from other applications on the server

If you have a small capacity server, a large number of users and a heavy per transaction processing load then you might get slow response times and ultimately some bad things may happen to your application.  So these factors need to be in balance.

However, with only 100 users you are unlikely to get any more than 10 transactions per second  and if your code is executing an average number of instructions then there should be no problem on a dedicated web server.

I have a NetTalk app which calculates 34,000 values for every 'transaction' and have estimated that, based on a maximum transaction rate the server (8 cores, 8 threads) can support 700 concurrent users.

I think that if your server 'stops working' (and you need to define what that means before you can effectively trouble shoot) it is likely that the problem is somewhere in the code - or one of the other factors noted above.

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Webserver does not work with large numbers of users
« Reply #6 on: February 05, 2015, 02:10:06 PM »
Hi Agustin,

I don't think the number of users is the problem.

I think you have probably got a transaction lock on SQL. If you kill your web app this then frees the lock and it works again until another lock. You can run a query in SQL to show you any locked process's to confirm if this is the case when your app stops working. To fix the problem make sure you use SQLTimeout around your file access code.

Check you also have set MARS and Busy handling. These are unrelated to your problem but you will have other undesirable side effects if you don't set.

Search this NG for more info on SQLTimeout.

Cheers,

Kev





agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Webserver does not work with large numbers of users
« Reply #7 on: February 06, 2015, 07:19:49 AM »
I'll try.
thank you very much