• Slow Webserver

    From Fidde@2:203/124 to Echicken on Wed Nov 8 17:02:31 2017
    Hi,

    Last time I have problem with my webserver, it is very very slow,
    when using ecweb4. I have even tried with a clean ecweb4 but the same,
    and can not find why.

    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (89.96 seconds) JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs (129.38 seconds)

    As you see all commands take between 80 and 200 seconds to execute.

    Do you know why? and how to fix it?

    Using lasest cvs on windows 10 x64.

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Wed Nov 8 13:43:17 2017
    Re: Slow Webserver
    By: Fidde to Echicken on Wed Nov 08 2017 17:02:31

    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (89.96 seconds) JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs (129.38 seconds)

    As you see all commands take between 80 and 200 seconds to execute.

    Does this happen on every page that you view?

    Do you know why? and how to fix it?

    No.

    Do you have a large number of nodes on your BBS, or a huge number of user accounts? There's one kinda questionable thing in 'system.ssjs' but I can't see it taking two minutes to complete.

    Using lasest cvs on windows 10 x64.

    I'm using the latest build as of a couple of days ago, but on Ubuntu; no such problems here.

    Please create a file in your 'sbbs/web/root/pages/' directory called '999-test.html' containing these two lines:

    <!--NO_SIDEBAR:Test Page-->
    Test test test

    Now browse to this URL and see if it loads any faster:

    http://pepzi.se/?page=999-test.html

    (Obviously correct the hostname if I got it wrong.)

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Thu Nov 9 17:11:10 2017
    2017-11-08 13:43, echicken wrote to Fidde:

    Re: Slow Webserver
    By: Fidde to Echicken on Wed Nov 08 2017 17:02:31

    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (89.96
    seconds) JavaScript: Done executing script:
    S:\sbbs\web\root\api\system.ssjs (129.38 seconds)

    As you see all commands take between 80 and 200 seconds to execute.

    Does this happen on every page that you view?

    Yes

    Do you have a large number of nodes on your BBS, or a huge number of user accounts? There's one kinda questionable thing in 'system.ssjs' but I can't see it taking two minutes to complete.

    No 6 nodes, about 100 accounts.

    Using lasest cvs on windows 10 x64.

    I'm using the latest build as of a couple of days ago, but on Ubuntu; no such problems here.

    Please create a file in your 'sbbs/web/root/pages/' directory called '999-test.html' containing these two lines:

    <!--NO_SIDEBAR:Test Page-->
    Test test test

    Now browse to this URL and see if it loads any faster:

    http://pepzi.se/?page=999-test.html

    (Obviously correct the hostname if I got it wrong.)

    It is right address. Yes, it took long time to load, same as other pages.

    I delete some messages in my fidonet echomail areas, and now it take lesser time.
    where is was 90 sek before it is 60 now.
    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (60.34 seconds) Have it any with mailscan to do??

    in log it is hundreds of these lines:
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-" Mozilla/5.0
    (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
    "GET /api/system.ssjs?call=get-telegram HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
    "GET /api/system.ssjs?call=get-telegram HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Thu Nov 9 13:53:32 2017
    Re: Re: Slow Webserver
    By: Fidde to Echicken on Thu Nov 09 2017 17:11:10

    I delete some messages in my fidonet echomail areas, and now it take lesser time.

    This should only really have an impact when browsing the 'Forum' page.

    in log it is hundreds of these lines:
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-" Firefox/56.0" "GET /api/system.ssjs?call=get-telegram HTTP/1.1" 200 - "-"

    This is all normal traffic and there will be lots of these lines.

    seconds) Have it any with mailscan to do??

    It might, but I doubt it. Is it any faster if you browse the site while not logged in? It shouldn't scan for new mail or messages when browsing as the guest user.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Thu Nov 9 21:07:55 2017
    I delete some messages in my fidonet echomail areas, and now it take
    lesser time.

    This should only really have an impact when browsing the 'Forum' page.

    I was not on forum page.

    in log it is hundreds of these lines:
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-"
    Firefox/56.0" "GET /api/system.ssjs?call=get-telegram HTTP/1.1" 200 -
    "-"

    This is all normal traffic and there will be lots of these lines.

    ok, but the timestamp say it took 1 minute.

    seconds) Have it any with mailscan to do??

    It might, but I doubt it. Is it any faster if you browse the site while not logged in? It shouldn't scan for new mail or messages when browsing
    as the guest user.

    I was not logged in, it scan anyway. How can I stop this for Guest users??

    And how can I stop it when I am logged in, for me only MAIL area is ok.

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From Fidde@2:203/124 to Echicken on Thu Nov 9 21:22:58 2017
    I delete some messages in my fidonet echomail areas, and now it take
    lesser time.

    This should only really have an impact when browsing the 'Forum' page.

    I was not on forum page. I only was on test page.

    in log it is hundreds of these lines:
    "GET /api/forum.ssjs?call=get-mail-unread-count HTTP/1.1" 200 - "-"
    Firefox/56.0" "GET /api/system.ssjs?call=get-telegram HTTP/1.1" 200 -
    "-"

    This is all normal traffic and there will be lots of these lines.

    ok, but the timestamp say it took 1 minute.

    seconds) Have it any with mailscan to do??

    It might, but I doubt it. Is it any faster if you browse the site
    while
    not logged in? It shouldn't scan for new mail or messages when
    browsing
    as the guest user.

    I was not logged in, it scan anyway. How can I stop this for Guest users??

    And how can I stop it when I am logged in, for me only MAIL area is ok.

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Thu Nov 9 16:41:21 2017
    Re: Re: Slow Webserver
    By: Fidde to Echicken on Thu Nov 09 2017 21:07:55

    ok, but the timestamp say it took 1 minute.

    The timestamps say that the requests are a minute apart, not that they took a minute to fulfill. Those requests are sent at regular 60 second intervals.

    I was not logged in, it scan anyway. How can I stop this for Guest users??

    That was an oversight on my part. I just pushed a change to the GitHub repo that should stop these requests from being sent unless you are logged in.

    This is very unlikely to be the source of your trouble, though.

    And how can I stop it when I am logged in, for me only MAIL area is ok.

    I'm not sure what you mean.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Fri Nov 10 18:46:29 2017
    2017-11-09 16:41, echicken wrote to Fidde:

    I was not logged in, it scan anyway. How can I stop this for Guest
    users??

    That was an oversight on my part. I just pushed a change to the GitHub repo that should stop these requests from being sent unless you are logged in.

    This is very unlikely to be the source of your trouble, though.

    No, you have right. It is any other thing. Thanks anyway.

    I have tried the most now. Find an one year old backup, and its same with that. Trying other ports, other versions, on a other computer, but nothing helps. Take 1:10 to get help page, and my users ask if I am down, because it timing out
    before sending it out some times.

    But Thank you for your support and I will continue to find why.

    one questions.. is is normaly it should send out a 0 bytes file:
    2017-11-10 18:52:44 1996 JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs (60.00 seconds)
    2017-11-10 18:52:44 1996 Sending file: S:\SBBS\Tempo\SBBS_SSJS.17816.1996.html (0 bytes)

    It always is 0 bytes after that 60 seconds.

    /Fidde


    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Fri Nov 10 13:47:59 2017
    Re: Re: Slow Webserver
    By: Fidde to Echicken on Fri Nov 10 2017 18:46:29

    one questions.. is is normaly it should send out a 0 bytes file: 2017-11-10 18:52:44 1996 JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs (60.00 seconds)
    2017-11-10 18:52:44 1996 Sending file: S:\SBBS\Tempo\SBBS_SSJS.17816.1996.html (0 bytes)

    It always is 0 bytes after that 60 seconds.

    Yes, this is probably normal, although I would expect the file to be at least two bytes long.

    Please grab a copy of this script:

    https://gist.github.com/echicken/764bf596ad8985c3cdaba121f9a842c4

    and place it at S:\sbbs\web\root\test.ssjs, and let me know when you've done so.

    Thanks,

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Fidde on Fri Nov 10 14:11:10 2017
    On Wed, 8 Nov 2017 17:02:31 +0100, "Fidde" <fidde@VERT> wrote:

    Hi,

    Last time I have problem with my webserver, it is very very slow,
    when using ecweb4. I have even tried with a clean ecweb4 but the same,
    and can not find why.

    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (89.96 seconds) >JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs (129.38 >seconds)

    As you see all commands take between 80 and 200 seconds to execute.

    Do you know why? and how to fix it?

    Using lasest cvs on windows 10 x64.

    This almost sounds like you're trying to access something externally
    however the DNS times out. Hard to tell. Use the built in debugger in
    Firefox (I prefer this one to the Chrome debugger). You'll be able to
    see which files are loaded and which ones take a long time to load.
    From there you can narrow down the issue.

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Fri Nov 10 21:50:04 2017
    2017-11-10 13:47, echicken wrote to Fidde:


    one questions.. is is normaly it should send out a 0 bytes file:
    2017-11-10 18:52:44 1996 JavaScript: Done executing script:
    S:\sbbs\web\root\api\system.ssjs (60.00 seconds)
    2017-11-10 18:52:44 1996 Sending file:
    S:\SBBS\Tempo\SBBS_SSJS.17816.1996.html (0 bytes)

    It always is 0 bytes after that 60 seconds.

    Yes, this is probably normal, although I would expect the file to be at least two bytes long.

    Please grab a copy of this script:

    https://gist.github.com/echicken/764bf596ad8985c3cdaba121f9a842c4

    and place it at S:\sbbs\web\root\test.ssjs, and let me know when you've done so.

    Yes, done. It compile fast, but give me a blank page,

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From Fidde@2:203/124 to Echicken on Fri Nov 10 22:00:48 2017
    one questions.. is is normaly it should send out a 0 bytes file:
    2017-11-10 18:52:44 1996 JavaScript: Done executing script:
    S:\sbbs\web\root\api\system.ssjs (60.00 seconds)
    2017-11-10 18:52:44 1996 Sending file:
    S:\SBBS\Tempo\SBBS_SSJS.17816.1996.html (0 bytes)

    It always is 0 bytes after that 60 seconds.

    Yes, this is probably normal, although I would expect the file to be at least two bytes long.

    Please grab a copy of this script:

    https://gist.github.com/echicken/764bf596ad8985c3cdaba121f9a842c4

    and place it at S:\sbbs\web\root\test.ssjs, and let me know when you've done so.

    did this file doing anything?? because my webserver working now :)

    90sek is now 0.41 sek

    Thanks :)

    Thanks,

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Fri Nov 10 16:36:42 2017
    Re: Re: Slow Webserver
    By: Fidde to Echicken on Fri Nov 10 2017 22:00:48

    did this file doing anything?? because my webserver working now :)

    No, that script should not have actually fixed your problem. I just wrote it to help me try to track down the issue.

    90sek is now 0.41 sek

    Yes, your site is suddenly loading much faster than it did before. Unfortunately I don't know why. If the problem crops up again, let me know and we can start looking into it again.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Fri Nov 10 22:59:05 2017
    did this file doing anything?? because my webserver working now :)

    No, that script should not have actually fixed your problem. I just wrote it to help me try to track down the issue.

    Strange... fter i run that file, it start working :)

    90sek is now 0.41 sek

    Now all times is under 1 second.

    Yes, your site is suddenly loading much faster than it did before. Unfortunately I don't know why. If the problem crops up again, let me
    know and we can start looking into it again.

    ok, thanks again.

    if you have time over, i would like a function to leave a message
    to sysop, any formmail so my email not expose.

    Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi System - Telnet://pepzi.eu (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)
  • From echicken@1:103/705 to Fidde on Fri Nov 10 19:03:00 2017
    Re: Re: Slow Webserver
    By: Fidde to Echicken on Fri Nov 10 2017 22:59:05

    if you have time over, i would like a function to leave a message
    to sysop, any formmail so my email not expose.

    Any logged-in user can already send you a private email, but I suppose a contact form of some kind might be useful. I'll see about making something, with an option to allow guest users to submit the form, some bot traps and I suppose an optional captcha.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@1:103/705 to Nelgin on Sat Nov 11 01:10:22 2017
    2017-11-10 14:11, Nelgin wrote to Fidde:

    Hi,

    Last time I have problem with my webserver, it is very very slow,
    when using ecweb4. I have even tried with a clean ecweb4 but the same,
    and can not find why.

    JavaScript: Done executing script: S:\sbbs\exec\xjs_handler.js (89.96
    seconds)
    JavaScript: Done executing script: S:\sbbs\web\root\api\system.ssjs
    (129.38 seconds)

    As you see all commands take between 80 and 200 seconds to execute.

    Do you know why? and how to fix it?

    Using lasest cvs on windows 10 x64.

    This almost sounds like you're trying to access something externally however the DNS times out. Hard to tell. Use the built in debugger in Firefox (I prefer this one to the Chrome debugger). You'll be able to
    see which files are loaded and which ones take a long time to load.
    From there you can narrow down the issue.
    @n

    Thank you. I will try this next time. Just now it working fine again.

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Fidde on Sat Nov 11 15:53:17 2017
    Re: Re: Slow Webserver
    By: Fidde to Nelgin on Sat Nov 11 2017 01:10:22

    This almost sounds like you're trying to access something externally
    however the DNS times out. Hard to tell. Use the built in debugger
    in Firefox (I prefer this one to the Chrome debugger). You'll be
    able to see which files are loaded and which ones take a long time
    to load. From there you can narrow down the issue.

    Thank you. I will try this next time. Just now it working fine again.

    In your case this would not have done much to help. The slowness was entirely on the server side, and the client didn't see any output from the server during the long wait, so browser dev tools wouldn't have told you much. If it happens again, we'll have to focus on the server side of things.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@2:203/124 to Echicken on Sun Nov 12 10:13:58 2017
    if you have time over, i would like a function to leave a message
    to sysop, any formmail so my email not expose.

    Any logged-in user can already send you a private email, but I suppose a contact form of some kind might be useful. I'll see about making something, with an option to allow guest users to submit the form, some
    bot traps and I suppose an optional captcha.

    Just for guests i mean, and "easy to find". It would be great.

    /Fidde

    --- GoldED+/W64-MSVC 1.1.5-b20170303
    # Origin: Pepzi File System * http://pepzi.se (2:203/124)
    * Origin: Pepzi = TelNet://pepzi.se (2:203/124)