facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.13k stars 2.98k forks source link

apc_cache_info() does not contain the key cache_list #1853

Closed lorenzo closed 9 years ago

lorenzo commented 10 years ago

In Zend PHP, when calling apc_cache_info you can expect the result to contain the key cache_list, which is missing in hhvm as seen in this test case:

https://travis-ci.org/cakephp/cakephp/jobs/19096182#L405

scannell commented 10 years ago

(CC @dariorussi)

scannell commented 10 years ago

Thanks for reporting this. Feel free to submit a PR if you (or someone else reading this) gets to this before we do.

micaelmalta commented 10 years ago

I have same issue juste doing this part of code:

var_dump(apc_cache_info());

In PHP 5.5.9 :

array(14) {
  'nslots' =>
  int(4099)
  'ttl' =>
  int(0)
  'nhits' =>
  double(0)
  'nmisses' =>
  double(0)
  'ninserts' =>
  double(0)
  'nentries' =>
  int(0)
  'nexpunges' =>
  double(0)
  'stime' =>
  int(1394664695)
  'mem_size' =>
  double(0)
  'file_upload_progress' =>
  int(1)
  'memory_type' =>
  string(4) "mmap"
  'cache_list' =>
  array(0) {
  }
  'deleted_list' =>
  array(0) {
  }
  'slot_distribution' =>
  array(0) {
  }
}

In HipHop VM 2.4.2 (rel)

array(1) {
  ["start_time"]=>
  int(1394664704)
}
Philzen commented 10 years ago

Same problem here (hhvm 3.0.1 on a ubuntu 12.04 based system) - apc.php monitor is not giving much info (but lots of warnings), showing only three options (apc.enable_cli, apc.enabled and apc.stat all showing 1) and zero keys.

Serious showstopper indeed... With phpinfo() still producing nil output except "HipHop" (#172, #1038 w/o resolution) it's virtually impossible for me to debug the setup any further.

rahul286 commented 10 years ago

I am trying to increase apc cache size but apc.php is not showing size change.

As like @Philzen it's showing only 3 values.

SiebelsTim commented 10 years ago

@fredemmott This is fixed e491ce7e.

http://3v4l.org/YRCCt