Questions tagged [garbage-collecting]

28 questions
30
votes
2 answers

Why does Debian clean php sessions with a cron job instead of using php's built-in garbage collector?

Debian and derivatives (Ubuntu) don't use the php session garbage collector session.gc_probability = 0 instead they use a cron /etc/cron.d/php5 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/…
nulll
  • 505
  • 1
  • 5
  • 8
7
votes
3 answers

Tomcat intermittent slowdowns, unresponsive, hangs

I've been trying to track down the cause of intermittent slowdowns of our Tomcat server. We get the slowdowns several times a week, where Tomcat will stop responding or take several minutes to process requests, and the cpu loads on the (Linux) box,…
ecto
  • 73
  • 1
  • 1
  • 4
6
votes
3 answers

PHP on Windows - ps_files_cleanup_dir error

I am occasionally getting the following error when loading a PHP page: PHP Notice: session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No error (0) in C:\server\default.php on line 299 Month-old sess_ files in C:\Windows\TEMP…
Mooseman
  • 163
  • 1
  • 7
4
votes
1 answer

How to disable automatic garbage collection on an SSD?

Solid State Drives (SSD) have a garbage collection functionality which makes space from deleted files available. It is triggered automatically by the drive via a TRIM command sent by the OS Is there a way to put an SSD in a state where the…
WoJ
  • 3,365
  • 8
  • 46
  • 75
4
votes
3 answers

JAVA_OPTS -XX:+PrintGCDetails affect on performance?

Does anyone know if the PrintGCDetails affects java performance much? I've been monitoring our java garbage collecting on a staging server with the same setup as the production server. I assumed it was safe to say that I shouldn't have this…
brad
  • 492
  • 1
  • 10
  • 22
3
votes
1 answer

Monitor the Garbage Collector of an SSD

The SSD controller triggers the garbage collection routines on a specific ship or block when a certain threshold of either invalid pages or written pages is met, based on the GC policy (my guess is that most SSDs use the greedy policy). I am trying…
SamTh3D3v
  • 253
  • 2
  • 10
1
vote
1 answer

Possible Linux page table issue/huge load average with large heap JVM that results in significant sys time in GC logs

Our service runs on AWS on m5.12xlarge nodes (48 cores, 192 G RAM) on Ubuntu 16.04. We use Java 8. For our service we allocate about 150G as max heap size. We have no swap on the node. The nature of our service is that it allocates a lot of large…
1
vote
2 answers

PHP script causes server shutdown

I have a centos server with 4Gb RAM. I'm doing a PHP console batch process that may take some hours... however it doesn't finish as the server shutdown after 1 or 2 hours from lauching the process... Here are the logs: Dec 28 04:39:01 www…
John
  • 11
  • 1
1
vote
1 answer

GC taking big pause and ParNew (promotion failed)

One of our java application is taking big pause while doing GC, it seems because of "ParNew (promotion failed)" it takes time. Java version: $ java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java…
Deepak Deore
  • 691
  • 9
  • 15
1
vote
0 answers

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of "Live objects" at seemingly random intervals. My…
Ross
  • 131
  • 5
1
vote
1 answer

High CPU utilisation w3wp.exe - GC issue?

I've inherited a website that uses a lot of session state. We've recently experienced continuous high CPU ~95-100% for prolonged period of times. When debugging using DebugDiag, it shows that there was ~3gb on the Large Object Heap which I believe…
Steve
  • 121
  • 1
  • 5
1
vote
1 answer

JVM crash with segmentation fault

We have a cluster of tomcat servers, just upgraded to debian7/openjdk7/tomcat7 (all from stock debian). Now we had two JVM crash on different machines. Both servers having identical hardware and are configured exactly the same (besides IP Addresses…
Janning
  • 1,191
  • 1
  • 19
  • 35
1
vote
3 answers

Why are Full GCs not running on my gcInterval I set?

ColdFusion 10 Update 10 Windows Server 2008 R2 Java 1.7.0_21 I am trying to figure Full GCs to run every 10 minutes. I have used the gcInterval JVM arg in the past on earlier versions of ColdFusion with success, but I have confirmed with verbose…
Brad Wood
  • 180
  • 1
  • 7
1
vote
2 answers

Periodic unresponsiveness in tomcat

I am experiencing periodic unresponsiveness in tomcat in our production environment. I cannot reproduce this in a test environment, and nothing appears in the logs prior to or during the event. Tomcat continues running, but stops servicing…
tangent
  • 13
  • 4
1
vote
1 answer

is it safe for the Apache to be the owner of the session directory (php)

Since I have upgraded to php 5.3 I have issues with the session GC. Seems he can't access the directory which is owned by root, Although I see sessions are being created there. Is it safe to change the ownership of that directory to the Apache?
1
2