cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:web:httpd:openfiles.html



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)




middleware/web/httpd/openfiles.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools