Apache HTTP Server Configuration Examples

Check open files with Apache

test.php

<?php
$fp = array();
for ($i = 0; $i < 1500; $i++) {
    $fp[] = fopen('test.php', 'r');
}
echo '<pre>';
var_dump($fp);
echo '</pre>';
#curl http://localhost/test.php

(abbr)
  [1009]=>
  resource(1012) of type (stream)
  [1010]=>
  resource(1013) of type (stream)
  [1011]=>
  resource(1014) of type (stream)
  [1012]=>
  resource(1015) of type (stream)
  [1013]=>
  resource(1016) of type (stream)
  [1014]=>
  bool(false)
  [1015]=>
  bool(false)
  [1016]=>
  bool(false)
  [1017]=>
(abbr)