Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Android Server Stability #67

Open
ClosetGeek-Git opened this issue Aug 27, 2017 · 14 comments
Open

Android Server Stability #67

ClosetGeek-Git opened this issue Aug 27, 2017 · 14 comments

Comments

@ClosetGeek-Git
Copy link

ClosetGeek-Git commented Aug 27, 2017

Sorry, I know these are more general questions than issues, but if you have the time to answer it would be great. First, I've noticed that your android build uses musl for libc rather than Bionic. Has this created any issues for your users (server crashes, devices stability issues, anti-virus flags, etc). Secondly, what is the typical memory usage on devices? Thanks

@oqyude
Copy link

oqyude commented Aug 27, 2017 via email

@ClosetGeek-Git
Copy link
Author

Журнал сбоев PocketMine-MP показал несколько сбоев PHP из-за исчерпания памяти. У вас возникли подобные проблемы?

@fengberd
Copy link
Owner

fengberd commented Aug 27, 2017 via email

@ClosetGeek-Git
Copy link
Author

PHP is known for being a memory hog in some situations. I can provide binaries for arm, i686, and x86_64 that I've tested on Android 4 to 6. It will have to be tomorrow (I'm located in the Seattle area and it's pretty late)

@fengberd
Copy link
Owner

Alright,thanks for your help but I can just update it next weekend(I'm a high student),please email binaries to [email protected] and I'll write some code to do ABI check then install correct version.

@PeratX
Copy link
Collaborator

PeratX commented Aug 27, 2017

If you need php compiled using Bionic, compile yourself.
And it is possible to modifiy php to make it compatible with uclibc/musl on Android.

@ClosetGeek-Git
Copy link
Author

Need to know which extensions are needed and which sapi is preferred (cli, cgi, or fpm)

@ClosetGeek-Git
Copy link
Author

@PeratX compiling PHP using NDK is a nightmare. To many issues with missing and modified header files.

@ClosetGeek-Git
Copy link
Author

Sent a basic binary to [email protected]. It doesn't have any PHP extensions built into it. One thing, my cross-compiler is optimized for Cortex-A9 in hopes to be iOS compatible when I start down that road. The Cortex-A9 instruction set is supposed to be backwards compatible with Cortex-A7 but I've only done minimal testing. I can switch to A7 if there are any issues.

@PeratX
Copy link
Collaborator

PeratX commented Aug 28, 2017

See TERMUX's php compile config. Or just use buildroot with uclibc/musl/glibc

@ClosetGeek-Git
Copy link
Author

ClosetGeek-Git commented Aug 28, 2017

Thanks for the tip @PeratX. I'll have a good look into that because musl and other Bionic alternatives arn't compatible with any Android specific features (Binders and other Android IPC, Dalvik VM access, Bluetooth, etc). In fact, with a proper NDK build system, PHP can be embedded into an app via JNI. I like musl however for anything that is meant to be cross-platform as opposed to Android specific.

@fengberd
Copy link
Owner

fengberd commented Sep 2, 2017

Are you sure about PocketMine works with that binary?You told me that binary "No extensions" in email.

@ClosetGeek-Git
Copy link
Author

I'll need to compile them this weeked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants