ljensen1 Posted October 12, 2007 Posted October 12, 2007 I've got an online application that queries two different FM7 databases, inputting the data to one of them. (Using FXPHP and FM7 Server Advanced on a Mac). The application deadline is today and last night there were over 100 users of the system. The web pages stopped functioning correctly - incredibly slow, error messages because the queries to one of the databases were failing. Database 1, the smaller, less complicated database that stored the data, worked fine. Database 2, a large, complicated database, couldn't respond to all the queries. Database 2 was also being queried by another set of web pages for a different purpose, also heavily used last night. Question - How many online users should an FM7 database be able to handle at once? What can I do to improve the performance of that database (other than decreasing the number of queries and having specified layouts for each query). Thanks!
Squeaky Data Posted October 12, 2007 Posted October 12, 2007 Having specific layouts for use with FX PHP can greatly increase the speed of a system. Make sure that the layouts only contain the fields, value lists etc. that are required for FX PHP.
ljensen1 Posted October 12, 2007 Author Posted October 12, 2007 I have done that. Do you know of any other common mistakes or issues that could limit the performance of a database when interacting with web pages?
IdealData Posted October 13, 2007 Posted October 13, 2007 AFAIK the limit is 100 web clients. Maybe you can upgrade to Server 9 where the machine deployment can be spread over multiple machines, including a dedicated web server. Is your hardware upto it? You're going to need something beefy to push all this.
Genx Posted October 13, 2007 Posted October 13, 2007 What exactly do you mean by this: Maybe you can upgrade to Server 9 where the machine deployment can be spread over multiple machines, including a dedicated web server. Are you just suggesting an FMS, Web Server split, or are you inferring a multi FMS deployment is possible?
rivet Posted October 16, 2007 Posted October 16, 2007 Running a 120 mb file, with over 44000 records, we were starting to slow down really bad, even to view a single record with maybe 30 fields, some relational and a couple calcs, we were getting various errors (timeout, xml, xsl ) throughout the site. We were maxing out at two web users to avoid the errors. After various days of tweaking, layouts, calc, and php. Testing on different servers. etc. It dawned on us, maybe the file is corrupt. We first ran the file through the file recover process and then ran optimize/compress under the file maintenance in FMP Advanced. Figuring that we should use all the tools FMP has. The file is now 85 mb, and our single record page load time has reduced from 8-10 sec, down to 2-3sec.
ljensen1 Posted October 16, 2007 Author Posted October 16, 2007 Eventually, we'll be able to upgrade - but for now I've got to work with what we have. Does FM9 allow more than 100 web clients, or is that just possible because you split it over multiple machines?
Vaughan Posted October 16, 2007 Posted October 16, 2007 Rivet wrote: "We first ran the file through the file recover process and then ran optimize/compress under the file maintenance in FMP Advanced." The Recover process should be used only as a LAST RESORT and a recovered file should NOT be put back into production. Revover is used only to recover *data* from a file, to import it into a known-good backup of the original file. The correct process is to first save a compressed copy of the file. Expert opinion is currently NOT to use the file maintenance options because these could make a corrupted file worse, not better. If the compressed copy is still corrupt, then recover the data and import into a known-good backup.
Recommended Posts
This topic is 6597 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now