Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container is getting restarted after the process completed #87

Open
Ishan-Batra opened this issue Jan 18, 2023 · 0 comments
Open

Container is getting restarted after the process completed #87

Ishan-Batra opened this issue Jan 18, 2023 · 0 comments
Labels

Comments

@Ishan-Batra
Copy link

Description

The following code:

date_default_timezone_set('Asia/Kolkata');
$filename = "/app/storage/logs/profile_".date('d-m-Y_H:i').".heap";
$file = fopen($filename, 'w');
memprof_dump_pprof($file);

Using MEMPROF_PROFILE=1 in env varibale

Resulted in this output:
File is getting created but container is getting restarted for every requerst , we configured for every http request hit we dump the profile

But I expected this output instead:
Without restart file dump need to be created

php-memprof Version

3.0.2

PHP Version

PHP 8.1.0

Operating System

alpine 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant