PHP App Slow
Anonymous
TRIALOP

2 years ago

Hello,
I want to ask, how to increase process limit of php threads

34 Replies

Anonymous
TRIALOP

2 years ago

2124fa9a-2185-4e75-bcdb-71eab1dea145


Anonymous
TRIALOP

2 years ago

like, I have a application that sends requests to backend for fetching details


Anonymous
TRIALOP

2 years ago

after one request has fully proccessed then the railway accepts other request


Anonymous
TRIALOP

2 years ago

ultimately resulting into this


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago

why does it seem like only 1 thread is there, other requests do not continue untill the earlier requests have been sent out


maddsua
HOBBY

2 years ago

just as I said in general chat, it's most likely a problem in app itself
could you share more info on what it is?

and just to avoid any confusion, me and the other folks who are around are not working for railway and so we can't just magically peek into your app


Anonymous
TRIALOP

2 years ago

Hello,
i have this problem


Anonymous
TRIALOP

2 years ago

I have few requests being send to the backend to fetch some things
and the requests answered one by one



Anonymous
TRIALOP

2 years ago

something like this


Anonymous
TRIALOP

2 years ago

but in my case , I do not have a session_start() either


Anonymous
TRIALOP

2 years ago

problem doesnt seem to be with code, something off with railway


Anonymous
TRIALOP

2 years ago

it is like this


Anonymous
TRIALOP

2 years ago

one request accepted, served then closed


Anonymous
TRIALOP

2 years ago

then other one gets accepted


maddsua
HOBBY

2 years ago

is keep alive enabled on the server?


maddsua
HOBBY

2 years ago

oh Brody is here 😀


brody
EMPLOYEE

2 years ago

i would like to state that this is not due to an issue with railway itself, that is all


maddsua
HOBBY

2 years ago

🫡


Anonymous
TRIALOP

2 years ago


maddsua
HOBBY

2 years ago

nah it ain't it, I mean http Keep-Alive


Anonymous
TRIALOP

2 years ago

having this type same issue


Anonymous
TRIALOP

2 years ago

no.


maddsua
HOBBY

2 years ago

too bad I don't work with php and can't tell you what exact steps you should try, but enabling keepalive is always a good idea


maddsua
HOBBY

2 years ago

just enabling it may not solve this problem tho


aleks
HOBBY

2 years ago

Are you using Nixpacks or a custom Dockerfile?


aleks
HOBBY

2 years ago

If you're using Nixpacks, it should be able to process either 32 or 50 connections simultaneously, depending on whether or not I'm reading the config file correctly


aleks
HOBBY

2 years ago


Anonymous
TRIALOP

2 years ago

nixpacks


Anonymous
TRIALOP

2 years ago

seems some MaxRequestWorkers handler issue


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago

its like this,

one request suceeded
then the server Acceptes the other request from the user and overall is slow asf


Anonymous
TRIALOP

2 years ago

expected response timings should be like this


Loading...