You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we see that the server is not accessible after a certain number of requests.
Finnaly here is my php.ini :
phpinfo()PHPVersion=>8.3.13System=>Linuxapi.06.6.30-0psh1#0psh1 SMP PREEMPT_DYNAMIC Fri, 3 May 2024 03:02:25 +0000 x86_64BuildSystem=>Linuxrunner-48b03d10-project-389-concurrent-06.1.0-20-amd64#1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/LinuxServerAPI=>CommandLineInterfaceVirtualDirectorySupport=>disabledConfigurationFile(php.ini)Path=>/etc/php/8.3/cliLoadedConfigurationFile=>/etc/php/8.3/cli/php.iniScanthisdirforadditional.inifiles=> /etc/php/8.3/cli/conf.dAdditional.inifilesparsed=>(none)PHPAPI=>20230831PHPExtension=>20230831ZendExtension=>420230831ZendExtensionBuild=>API420230831,NTSPHPExtensionBuild=>API20230831,NTSDebugBuild=>noThreadSafety=>disabledZendSignalHandling=>enabledZendMemoryManager=>enabledZendMultibyteSupport=>providedbymbstringZendMaxExecutionTimers=>disabledIPv6Support=>enabledDTraceSupport=>available,disabledRegisteredPHPStreams=>https,ftps,compress.zlib,php,file,glob,data,http,ftp,compress.bzip2,phar,zipRegisteredStreamSocketTransports=>tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3RegisteredStreamFilters=>zlib.*,string.rot13,string.toupper,string.tolower,convert.*,consumed,dechunk,bzip2.*,convert.iconv.*
ThisprogrammakesuseoftheZendScriptingLanguageEngine:
ZendEnginev4.3.13,Copyright(c)ZendTechnologieswithZendOPcachev8.3.13,Copyright(c),byZendTechnologieswithblackfirev1.92.17~linux-x64-non_zts83,https://blackfire.io,byBlackfire_______________________________________________________________________ConfigurationapcuAPCuSupport=>EnabledVersion=>5.1.24APCuDebugging=>DisabledMMAPSupport=>EnabledMMAPFileMask=>SerializationSupport=>phpBuildDate=>Sep22202404:02:40Directive=>LocalValue=>MasterValueapc.coredump_unmap=>Off=>Offapc.enable_cli=>On=>Onapc.enabled=>On=>Onapc.entries_hint=>4096=>4096apc.gc_ttl=>3600=>3600apc.mmap_file_mask=>novalue=>novalueapc.preload_path=>novalue=>novalueapc.serializer=>php=>phpapc.shm_segments=>1=>1apc.shm_size=>32M=>32Mapc.slam_defense=>Off=>Offapc.smart=>0=>0apc.ttl=>0=>0apc.use_request_time=>Off=>OffbcmathBCMathsupport=>enabledDirective=>LocalValue=>MasterValuebcmath.scale=>0=>0blackfireBlackfire=>enabledBlackfire=>1.92.17~linux-x64-non_zts83Timingmeasurement=>cgtSessionssupport=>enabledNumofCPU=>8Profilingheapmemory=>0KbMaininstancetriggermode=>CLIautotriggeredMaininstance=>disabledBlackfireruntimeactiveenvironmentBLACKFIRE_LOG_LEVEL=>2BLACKFIRE_LOG_FILE=>stderrBLACKFIRE_SERVER_ID=>1f4d3bb6-5287-47ee-9e19-406419aec68eBLACKFIRE_SERVER_TOKEN=>6cebca70ea16a36f35fb290ec2f78d01df8b361daabcbfedbdfeda07d0e85aeeBlackfireruntimeheadersNoheadersdetectedDirective=>LocalValue=>MasterValueblackfire.agent_socket=>unix:///var/run/blackfire/agent.sock=>unix:///var/run/blackfire/agent.sockblackfire.apm_agent_timeout_ms=>300=>300blackfire.apm_browser_collector_endpoint=>novalue=>novalueblackfire.apm_browser_key=>novalue=>novalueblackfire.apm_browser_probe_url=>novalue=>novalueblackfire.apm_connect_at_startup=>0=>0blackfire.apm_enable_automatic_browser_probe=>1=>1blackfire.apm_enabled=>1=>1blackfire.apm_lock_duration=>300=>300blackfire.debug.sigsegv_handler=>0=>0blackfire.env_id=>novalue=>novalueblackfire.env_token=>novalue=>novalueblackfire.experimental.observer_api=>0=>0blackfire.features.auto_profiling=>1=>1blackfire.features.curl=>1=>1blackfire.features.embedded_code=>1=>1blackfire.hostname=>novalue=>novalueblackfire.log_file=>stderr=>novalueblackfire.log_level=>2=>1blackfire.server_id=>1f4d3bb6-5287-47ee-9e19-406419aec68e=>novalueblackfire.server_token=>6cebca70ea16a36f35fb290ec2f78d01df8b361daabcbfedbdfeda07d0e85aee=>novalueBlackfiredevelopedbyBlackfirebz2BZip2Support=>EnabledStreamWrappersupport=>compress.bzip2://Stream Filter support => bzip2.decompress, bzip2.compressBZip2 Version => 1.0.8, 13-Jul-2019calendarCalendar support => enabledCorePHP Version => 8.3.13Directive => Local Value => Master Valueallow_url_fopen => On => Onallow_url_include => Off => Offarg_separator.input => & => &arg_separator.output => & => &auto_append_file => no value => no valueauto_globals_jit => On => Onauto_prepend_file => no value => no valuebrowscap => no value => no valuedefault_charset => UTF-8 => UTF-8default_mimetype => text/html=>text/htmldisable_classes=>novalue=>novaluedisable_functions=>novalue=>novaluedisplay_errors=>Off=>Offdisplay_startup_errors=>Off=>Offdoc_root=>novalue=>novaluedocref_ext=>novalue=>novaluedocref_root=>novalue=>novalueenable_dl=>Off=>Offenable_post_data_reading=>On=>Onerror_append_string=>novalue=>novalueerror_log=>novalue=>novalueerror_log_mode=>0644=>0644error_prepend_string=>novalue=>novalueerror_reporting=>22527=>22527expose_php=>Off=>Offextension_dir=>/usr/lib/php/20230831=>/usr/lib/php/20230831fiber.stack_size=>novalue=>novaluefile_uploads=>On=>Onhard_timeout=>2=>2highlight.comment=> <fontstyle="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>highlight.default=> <fontstyle="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>highlight.html=> <fontstyle="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>highlight.keyword=> <fontstyle="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>highlight.string=> <fontstyle="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>html_errors=>Off=> Offignore_repeated_errors=>Off=>Offignore_repeated_source=>Off=>Offignore_user_abort=>Off=>Offimplicit_flush=>On=>Oninclude_path=>.: => .:
input_encoding=>novalue=>novalueinternal_encoding=>novalue=>novaluelog_errors=>On=>Onmail.add_x_header=>Off=>Offmail.force_extra_parameters=>novalue=>novaluemail.log=>novalue=>novaluemail.mixed_lf_and_crlf=>Off=>Offmax_execution_time=>0=>0max_file_uploads=>20=>20max_input_nesting_level=>64=>64max_input_time=> -1=> -1max_input_vars=>5000=>5000max_multipart_body_parts=> -1=> -1memory_limit=> -1=> -1open_basedir=>novalue=>novalueoutput_buffering=>0=>0output_encoding=>novalue=>novalueoutput_handler=>novalue=>novaluepost_max_size=>4088M=>4088Mprecision=>14=>14realpath_cache_size=>4096K=>4096Krealpath_cache_ttl=>600=>600register_argc_argv=>On=>Onreport_memleaks=>On=>Onreport_zend_debug=>Off=>Offrequest_order=>GP=>GPsendmail_from=>novalue=>novaluesendmail_path=>/usr/sbin/sendmail -t -i=>/usr/sbin/sendmail -t -iserialize_precision=>17=>17short_open_tag=>Off=>OffSMTP=>localhost=>localhostsmtp_port=>25=>25sys_temp_dir=>novalue=>novaluesyslog.facility=>LOG_USER=>LOG_USERsyslog.filter=>no-ctrl=>no-ctrlsyslog.ident=>php=>phpunserialize_callback_func=>novalue=>novalueupload_max_filesize=>4088M=>4088Mupload_tmp_dir=>novalue=>novalueuser_dir=>novalue=>novalueuser_ini.cache_ttl=>300=>300user_ini.filename=>.user.ini=>.user.inivariables_order=>EGPCS=>EGPCSxmlrpc_error_number=>0=>0xmlrpc_errors=>Off=>Offzend.assertions=> -1=> -1zend.detect_unicode=>Off=>Offzend.enable_gc=>On=>Onzend.exception_ignore_args=>Off=>Offzend.exception_string_param_max_len=>15=>15zend.max_allowed_stack_size=>0=>0zend.multibyte=>Off=>Offzend.reserved_stack_size=>0=>0zend.script_encoding=>novalue=>novaluezend.signal_check=>Off=>Off
I searched a lot but I did not find the answer that could help me. I may have my lconfiguré frankenphp for a pre-prod environment. It would be a pleasure to exchange!
The text was updated successfully, but these errors were encountered:
Discussed in #1190
Originally posted by gabgabb November 22, 2024
Hello !
I am making a back-end application with an api platform and frankenphp. As well as a front with next-js.
So I communicate via REST API for everything.
I have not encountered any problems during development, however I encounter difficulties during deployment on platform.sh
I use docker for development with the help of Api platform demo.
For deployment I use this command to launch my frankenphp server.
start: ./frankenphp php-server --listen=localhost:$PORT --root=$PLATFORM_DOCUMENT_ROOT --worker=$WORKER --debug --access-log
with the frankenphp app runtime et le mode worker :
env: PORT: '8888' APP_RUNTIME: 'Runtime\FrankenPhpSymfony\Runtime' WORKER: './public/index.php'
and this script provided by platform.sh to install frankenphp on the host machine : script
I don't have any issues when using the backend normally, however I think frankenphp restarts after I ask it for too many simultaneous requests.
Here are the logs from frankenphp when calling multiple api platform endpoints :
I don't get any errors in the application itself when calling.
I know that frankenphp is supposed to start by itself after a certain number of requests but I'm not sure if this is the desired behavior here.
In addition to this I ran tests on my endpoints: :
we see that the server is not accessible after a certain number of requests.
Finnaly here is my php.ini :
I searched a lot but I did not find the answer that could help me. I may have my lconfiguré frankenphp for a pre-prod environment. It would be a pleasure to exchange!
The text was updated successfully, but these errors were encountered: