Questions tagged [starman]

Starman is a high-performance preforking Perl PSGI web server

Starman is a high-performance preforking Perl PSGI web server

27 questions
2
votes
2 answers

How do you use Plack::Middleware::Session with a Starman Server?

I have a Starman based server - #!/usr/bin/perl use strict; use warnings; use Data::Printer; use Plack::Builder; my $app = sub { my $env = shift; my $session = $env->{'psgix.session'}; # Print environment variables p($env); …
CodeQuestor
  • 881
  • 1
  • 11
  • 25
2
votes
1 answer

How do I discover on what server the app.psgi process is running?

Is there a way to discover on what server app.psgi is running? For example, I am looking for some idea for how to solve the next code fragment from app.psgi: #app.psgi use Modern::Perl; use Plack::Builder; my $app = sub { ... }; my $server =…
clt60
  • 62,119
  • 17
  • 107
  • 194
2
votes
1 answer

Starman eat all the memory with Dancer REST api

I have developed a RESTful application with perl framework Dancer. This application needs almost 1 GB in memory and it takes 30 seconds to be loaded. This application works pretty well in a local test with ./bin/app.pl for a single user, then I try…
Sak
  • 31
  • 4
2
votes
1 answer

Perl supervisor plackup starman perlbrew

I would like to know if there is a Perl tool like supervisord to manage processes. http://supervisord.org/ I have seen a Perl program called Supervisor, but I don't know if it is as good as the Python one: https://metacpan.org/pod/Supervisor I want…
Hobbestigrou
  • 1,777
  • 1
  • 13
  • 16
2
votes
1 answer

How can Dancer app process HUP signal to close/reopen logfile

I wrote a Dancer app, with the log config: logger: file logger_format: <%T> %m log_path: '/usr/local/myapp/log' log_file: 'myapp.log' log: debug and start it with: plackup -E deployment -D -s Starman --workers=10 --port 8080…
2
votes
4 answers

Starman and MovableType 5.2

MovableType 5.2 has builtin PSGI support (via a mt.psgi in the main directory) and I've been trying to take advantage of it using starman/plackup. Starman w/ MT fires up, but I get odd Not Founds and a silent hang & fail when I run mt-upgrade.cgi.…
Jamie Pitts
  • 51
  • 1
  • 5
1
vote
1 answer

Calling 'confess' under Plack/Starman

I have a Plack/Starman application running with TryCatch statements that call 'confess' from the Carp module. However I notice that the confess output is not printing to STDOUT. I've tried routing STDERR output to STDOUT '2>&1', but still don't see…
MadHacker
  • 608
  • 5
  • 18
1
vote
1 answer

PSGI - constructor for each prefork-child

I have question about constructor for each child after forking. For example: warn "INIT : Parent : ".$$; my $stash; sub { unless($stash) { warn "init : Child : ".$$; $stash = { dbh => {} }; } return […
Roman None
  • 41
  • 3
1
vote
0 answers

Why starman / plackup don't recommend option -r

I want to start starman with option -r to upgrades source code without to restart server. starman --workers 32 --port 8080 -r mytest.psgi !! !! Using restarter with -r or -R options is known to cause issues with process supervisor !! such as…
ovntatar
  • 416
  • 1
  • 3
  • 17
0
votes
1 answer

Dynamic package loading under plackup with Starman

I am running a web app under plackup with starman and trying to dynamically load and instantiate packages based on user requests. I am using 'require $packageName;' to load the package where $packageName contains the name of the package, the names…
MadHacker
  • 608
  • 5
  • 18
0
votes
2 answers

Using sessions with perl Dancer/plack/Starman and multiple workers

I'm running a perl Dancer application using Starman via plack (hopefully that is describing things correctly), and mostly this has been a painless experience. I've just recently been trying to get sessions working (really simple stuff - I just want…
0
votes
1 answer

How to proxy a starman request to Apache?

I use starman for my webapp. Apache web server listens on port 8080. I want to rewrite some request like '/request' to this Apache web-server in starman. I try to find some pm, but I found few examples to help me.
AilesFX
  • 81
  • 4
1
2