I having trouble with importing of a new GEDCOM. The GEDCOM has now a size of 30 MB. The import prozess stops after a while. I have set the time auf 6 seconds, but I had no chance to import this file. The import is only possible with an smaller GEDCOM file with a most 25 MB.
The server has 128 MB RAM. What can I do to solve this problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Otmar:
You need to determine what the execution time limit for PHP scripts is. This is in the php.ini file that defines the server-wide PHP environment. The following PHP script, run in place of PhpGedView, will display the PHP environment:
{less-than}?php
phpinfo();
?>
Replace the {less-than} by the correct character. (I have to resort to this stupid work-around because the idiotic BBS system forced upon us by SourceForge won't let me enter the less-than symbol correctly.)
In the output, search for "max_execution_time".
There are underscore characters around the word "execution". (same stupid SourceForge BBS!!!!)
You need to set the time-limit for the Import in PhpGedView to a value just a little less than this time limit.
By doing so, you tell PhpgedView to cleanly interrupt the Import just before the server's time limit runs out. You can then click the "continue" button, or you can get PhpgedView to click this button automatically.
If you let the server time-limit run out, PhpGedView has no reference points to allow a clean resumption of the Import.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The server time limit is 60 seconds. Should I really use 58 seconds for the import? I don't understand why that should then work, but I can test it.
I had set 60 seconds for smaller gedcom files (max. 16 MB) and this did works fine. After then the GEDCOM became larger I had reduce the seconds on 20 and less.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PGV will keep track of how much time has elapsed and when the limit you have set is reached, it will go through some special routines that record where in the incoming GEDCOM it is stopping and what the current ID numbers are. This information enables PGV to resume the Import where it left off.
If you don't set this time limit properly, the PHP system will just kill PGV without first notifying it that it's about to do so. PGV won't have recorded any recovery information, so no recovery is possible.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I having trouble with importing of a new GEDCOM. The GEDCOM has now a size of 30 MB. The import prozess stops after a while. I have set the time auf 6 seconds, but I had no chance to import this file. The import is only possible with an smaller GEDCOM file with a most 25 MB.
The server has 128 MB RAM. What can I do to solve this problem?
Otmar:
You need to determine what the execution time limit for PHP scripts is. This is in the php.ini file that defines the server-wide PHP environment. The following PHP script, run in place of PhpGedView, will display the PHP environment:
{less-than}?php
phpinfo();
?>
Replace the {less-than} by the correct character. (I have to resort to this stupid work-around because the idiotic BBS system forced upon us by SourceForge won't let me enter the less-than symbol correctly.)
In the output, search for "max_execution_time".
There are underscore characters around the word "execution". (same stupid SourceForge BBS!!!!)
You need to set the time-limit for the Import in PhpGedView to a value just a little less than this time limit.
By doing so, you tell PhpgedView to cleanly interrupt the Import just before the server's time limit runs out. You can then click the "continue" button, or you can get PhpgedView to click this button automatically.
If you let the server time-limit run out, PhpGedView has no reference points to allow a clean resumption of the Import.
The server time limit is 60 seconds. Should I really use 58 seconds for the import? I don't understand why that should then work, but I can test it.
I had set 60 seconds for smaller gedcom files (max. 16 MB) and this did works fine. After then the GEDCOM became larger I had reduce the seconds on 20 and less.
Yes, 58 or 55 or such should work.
PGV will keep track of how much time has elapsed and when the limit you have set is reached, it will go through some special routines that record where in the incoming GEDCOM it is stopping and what the current ID numbers are. This information enables PGV to resume the Import where it left off.
If you don't set this time limit properly, the PHP system will just kill PGV without first notifying it that it's about to do so. PGV won't have recorded any recovery information, so no recovery is possible.
Thank you Gerry! I imported straight successfully a 24 MB large GEDCOM file.
Greetings, Otmar