-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Amazon EC2 t1.micro can't run HHVM #1129
Comments
What happens when you try that? Are you sure you specified those settings correctly? (It should be complaining about a different number of bytes at least.) |
No, always show :could not allocate 1209565183 bytes for translation cache . |
Try passing the actual numbers? I don't think configuration file arguments are evaluated... |
Actual numbers mean is JitASize = 256M ? |
An integer number of bytes, e.g. 268435456. |
There is no change. Eval in Server{ }? or Server { } Eval { }? |
Should just be under Eval { }. |
No work :( |
Try passing the arguments on the commandline, or just attaching a debugger in the runtime option parsing code and seeing if it's finding the values -- this should narrow down the problem. |
Eval { Just have this , no change. |
hhvm --debug-config hhvm.hdf |
I verified that using this in a .hdf file: Eval { That the VM terminates because the sizes are too small, so these values are taking effect. Are you sure that .hdf file exists? I'd try stepping through the code. |
Yeah, |
This is same question: http://www.swageroo.com/wordpress/hiphop-vm-on-ec2-could-not-allocate-1210089471-bytes-for-translation-cache/ m1.small is OK ,but t1.micro not work. And Amazon EC2 t1.micro memory is 678MB |
What happens when you step through the code? |
Yeap~! |
Look like is worked.Wait ... I try it now. |
uh... :( No work... |
Of course the second time didn't work, you didn't specify an .hdf file... |
How to specify an .hdf file? |
hhvm -m server -u ubuntu -c hhvm_debug.hdf ? |
Allocation sizes ASize, AStubsSize, and GlobalDataSize are too small. |
I try 512MB to byte? |
If you got the 'too small' portion, you specified it correctly. Now change the values to sizes that will fit on your VM. |
I try config for t1.micro use this code: |
Yeap~! It's worked I want to try the most appropriate distribution ratio for Amazon EC2 t1.micro. |
Glad you got it working. |
Can I know compiling hhvm under Amazon ec2 micro take how long time. |
In general we've been talking about other release/packing strategies but haven't made any concrete decisions yet. (In the meantime, anyone is free to set up nightly builds for us from the available source if they would like.) |
@scannell can you submit in master or in this issue debian/ directory contents for self build |
@sgolemon is the right person to ask for that -- I'm not entirely sure how she packages these releases. |
I'm trying to run hhvm in the t1.micro instance (AWS). The messsage appear when I tried to run: sudo /usr/bin/hhvm --mode daemon --user web --config /etc/hhvm.hdf from http://www.hhvm.com/blog/113/getting-wordpress-running-on-hhvm. alert: This is related with: Eval { Where I put this code? In server.hdf or config.hdf? Thanks a lot. |
I'm not sure if you still need to change the JIT sizes after 5d60ea9. The alert is telling you just that -- I'm guessing /etc/hhvm.hdf doesn't specify a log. The name of the .hdf file doesn't matter, the only thing that matters is if you want HHVM to use it you need to specify it as the --config argument when starting HHVM. |
Ok. But /etc/hhvm.hdf doesn't exists anymore. When I install from binaries (sudo apt-get install hhvm) three files are created under /etc/hhvm directory: config.hdf, server.hdf and php.ini (this later is an empty file). My instance seems running (after run sudo /usr/bin/hhvm --mode daemon --config /etc/hhvm/server.hdf), but I pointed to my index.php under app directory and the only response is: not found. What I miss? P.S.: the header of response is (from firebug): |
I believe in that article it says to create /etc/hhvm.hdf using the sample config file in the article. You can either use the inbuilt ones that ship with the binaries or the one in the article -- pick one and use that as the --config argument. |
Yes, I picked one (server.hdf, provided as is). In one hand the server appear to be running, but in the other hand none of the php code was processed, and I don't know why. |
For wordpress i would use a config file with the contents of the one on the wiki, otherwise you probably need to make sure all the paths are correct. |
Server config:
EC2 t1.micro Ubuntu12.04 64bit
HHVM version:
HipHop VM v2.1.0-dev (rel)
Error alert is :
tcmalloc: large alloc 1209565184 bytes == (nil) @
tcmalloc: large alloc 1209565184 bytes == (nil) @
could not allocate 1209565183 bytes for translation cache
And I've tried this: b5163ad
But, still not work.
Help me, please.
The text was updated successfully, but these errors were encountered: