Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 03 2022 10:28
    Ganeshshit commented #255
  • Sep 28 2022 16:36

    andig on master

    Add option to toggle extra work… (compare)

  • Sep 28 2022 16:36
    andig closed #555
  • Sep 28 2022 16:27
    Firehed commented #555
  • Sep 28 2022 16:27
    Firehed synchronize #555
  • Sep 28 2022 16:23
    Firehed synchronize #555
  • Sep 28 2022 06:02
    andig commented #555
  • Sep 28 2022 00:34
    Firehed opened #555
  • Sep 07 2022 11:30
    starking8b commented #554
  • Sep 07 2022 05:54
    starking8b commented #554
  • Sep 07 2022 05:36
    andig closed #554
  • Sep 07 2022 05:36
    andig commented #554
  • Sep 06 2022 21:22
    starking8b opened #554
  • Sep 01 2022 19:29
    zwirek synchronize #553
  • Aug 29 2022 17:37
    andig commented #553
  • Aug 29 2022 17:01
    zwirek synchronize #553
  • Aug 29 2022 16:49
    zwirek commented #553
  • Aug 29 2022 16:46
    zwirek synchronize #553
  • Aug 27 2022 18:39
    andig commented #553
  • Aug 27 2022 11:34
    zwirek opened #553
Michael
@gamelife1314
lumen 5.6
Starting PHP-PM with 8 workers, using StreamSelectLoop ...
8 workers (starting at 5501) up and ready. Application is ready at http://127.0.0.1:8080/
--- Worker 5501 stderr ---
string(4263) "Error: Call to undefined method Laravel\Lumen\Application::getProvider() in /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:128
Stack trace:
#0 /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php(119): PHPPM\Bootstraps\Laravel->resetProvider('\\Illuminate\\Coo...')
#1 /var/www/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php(113): PHPPM\Bootstraps\Laravel->postHandle(Object(Laravel\Lumen\Application))
#2 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(431): PHPPM\Bridges\HttpKernel->handle(Object(React\Http\Io\ServerRequest))
#3 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(392): PHPPM\ProcessSlave->handleRequest(Object(React\Http\Io\ServerRequest))
#4 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(49): PHPPM\ProcessSlave->onRequest(Object(React\Http\Io\ServerRequest))
#5 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 3)
#6 /var/www/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php(34): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#7 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyParserMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#8 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 2)
#9 /var/www/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php(44): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#10 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyBufferMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#11 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 1)
#12 /var/www/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php(91): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#13 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\LimitConcurrentRequestsMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#14 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(40): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 0)
#15 /var/www/vendor/react/http/src/StreamingServer.php(237): React\Http\Io\MiddlewareRunner->__invoke(Object(React\Http\Io\ServerRequest))
#16 /var/www/vendor/react/http/src/StreamingServer.php(176): React\Http\StreamingServer->handleRequest(Object(React\Socket\Connection), Object(React\Http\Io\ServerRequest))
#17 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\StreamingServer->React\Http\{closure}(Object(React\Http\Io\ServerRequest), '')
#18 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(59): Evenement\EventEmitter->emit('headers', Array)
#19 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(47): React\Http\Io\RequestHeaderParser->parseAndEmitRequest(134)
#20 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\Io\RequestHeaderParser->feed('GET / HTTP/1.1\r...')
#21 /var/www/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#22 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('GET / HTTP/1.1\r...')
#23 /var/www/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#24 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #241, Object(React\EventLoop\StreamSelectLoop))
#25 /var/www/vendor/react/event-loop/src/StreamSelectLoop.php(236):
Sergey
@NBZ4live
@gamelife1314 I made it work by extending the Adapter and override the resetProvider method
But we don’t use it in production yet, so no guarantees=)
Marc Morera
@mmoreram
Hello people :D
I'm adding php-pm in an open source project called Apisearch
and I have two small questions
Has anyone any clue about why the PM is only using one Worker even if I define 4, 6 or 10
?
or any
Marc J. Schmidt
@marcj
because too few requests per second?
Marc Morera
@mmoreram
can be that?
LOL
maybe
Marc J. Schmidt
@marcj
how do you test? you need a benchmark/stress test tool to go beyond first worker
Marc Morera
@mmoreram
That was awesome
I put the server full of asyncronous calls
and that worked properly
thanks! ^^
and one small thing... Do you know why, in every request, there's an increment of N bytes of memory?
like 720B, depending on the length of the url
I mean, I can live with that, but I was previously working with an increment of 0 bytes in each request, and I was wondering if that's because of the PM or the PHP process itself
Marc J. Schmidt
@marcj
if you can create a git repo somewhere where we can reproduce that you could file an issue at our github repo
Marc Morera
@mmoreram
I will, thanks :)
Fionera
@fionera
Hi o/
So can someone explain me why I need debug mode enabled to have filewatchers running?
Marc J. Schmidt
@marcj
because its a dev/debug helper :P you probably dont want to have it in prod enabled
Fionera
@fionera
Hmpf i would like to have it... currently i just run prod with debug
iLyas Bakouch
@isbkch
So I went for the non-docker solution that I installed on an EC2 instance, configured Nginx to listen on port "http://127.0.0.1:8080" and just launched ppm on Lumen using tmux (and dettached the session), is there a better way to make sure ppm is always running ?
Marc J. Schmidt
@marcj
Yes, use docker.