antlr / antlr4-lab

A client/server for trying out and learning about ANTLR
MIT License
36 stars 11 forks source link

Antlr4 Lab is down #93

Closed mbarrow4 closed 1 week ago

mbarrow4 commented 1 week ago

The antlr4 lab's server is not responding. It is not just me, the server has been down for almost two days. Antlr4

parrt commented 1 week ago

Sorry about that. It's much better than it was but still gets overloaded I think. Someone gets naughty and pegs the CPUs :( Please try now.

parrt commented 1 week ago

What tool did you used to get that snapshot? Is there a good service for getting alerts?

kaby76 commented 1 week ago

It may be that someone is trying to use an ambiguous grammar, which will cause high cpu usage. I can eliminate those grammars in grammars-g4 from the dropdown list of available grammars by adjusting grammars.json. Or, I can eliminate example inputs that run slowly.

parrt commented 1 week ago

yeah would be best to kill if it takes too long. my server code should be doing that but...

mbarrow4 commented 1 week ago

What tool did you used to get that snapshot? Is there a good service for getting alerts?

I used a website called: https://www.isitdownrightnow.com/lab.antlr.org.html

Antlr is still down for me. Ill try again tomorrow.

Thank you

mbarrow4 commented 1 week ago

yeah would be best to kill if it takes too long. my server code should be doing that but...

ITS WORKING!!! THANK YOU THANK YOU THANK YOU

kaby76 commented 1 week ago

It is down again. @mbarrow4 , what grammar are you using?

parrt commented 1 week ago

For UTC-7, does the timing look right for when you started hitting the server again? I don't have the time to investigate the logs to figure out what was causing the spike. It's probably somebody else sending a huge job but thought I would ask. [image: Screenshot 2024-09-23 at 10.17.57 AM.png]

On Mon, Sep 23, 2024 at 5:25 AM Monica Barrow @.***> wrote:

yeah would be best to kill if it takes too long. my server code should be doing that but...

ITS WORKING!!! THANK YOU THANK YOU THANK YOU

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4-lab/issues/93#issuecomment-2368062687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLUWNNRCUXPGNR6HUFHITZYACCBAVCNFSM6AAAAABOUUJY3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGA3DENRYG4 . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Dictation in use. Please excuse homophones, malapropisms, and nonsense.

parrt commented 1 week ago

I brought it back up.

On Mon, Sep 23, 2024 at 5:08 AM Monica Barrow @.***> wrote:

What tool did you used to get that snapshot? Is there a good service for getting alerts?

I used a website called: https://www.isitdownrightnow.com/lab.antlr.org.html

Antlr is still down for me. Ill try again tomorrow.

Thank you

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4-lab/issues/93#issuecomment-2368026309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLUWNTKUJIXPNM576T3QTZYAAEFAVCNFSM6AAAAABOUUJY3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGAZDMMZQHE . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Dictation in use. Please excuse homophones, malapropisms, and nonsense.

kaby76 commented 1 week ago

Something to note: https://lab.antlr.org (the secure address) is invalid--connection refused. The correct address is http://lab.antlr.org. For some reason, my browser auto-completes to the "https" address. And it is not redirected to the unsecured address. Perhaps some of these reports, such as mine, are against the wrong address.

kaby76 commented 1 week ago

A good test case for the code that resets the server would be grammar HTML, input file youtube.html, which is available through the dropdown menus (specified in the grammars.json file). For the Java non-interpreted engine, a single parse required ~900s. For C#, ~1700s. On a Ryzen 7 2700, 16GB, SSD, Windows 11.