Buenos días compañeros,
Tengo un portal web en Linux que periódicamente extrae datos de un AS/400
en V7.1 y de vez en cuando el proceso me da un error de falta de memoria.
Estoy totalmente perdido en este tema, alguien me podría echar un cable?
Los detalles de la instalación son:
Datos del servidor Linux
SO: Debian 7
Versión Apache: Apache/2.2.22 (Debian)
Versión PHP: PHP 5.4.4-14+deb7u14 (cli)
Drivers instalados: iSeriesAccess-7.1.0-1.0.x86_64.rpm
Error:
Fatal error: Out of memory (allocated 7864320) (tried to allocate
17014641920971898896 bytes)
Código simple php:
$conn=odbc_connect($driveribm,$useribm,$passibm);
$sql="select ifnull(okcono,'') as okcono from ocusma where okcono = 010 ";
$rs=odbc_exec($conn,$sql);
while (odbc_fetch_row($rs)) {
$data=trim(odbc_result($rs,"okcono"));
}
odbc_close($conn);
Muchas gracias,
Sergi Sitjes
Director Sistemes d'Informació/IT Manager
GENEBRE GROUP
E-mail: [email protected]
Web: http://www.genebre.es
Tel: +34 93 298 80 02
Fax: +34 93 298 80 07
La información que contiene este correo electrónico es confidencial y compete
exclusivamente al destinatario. Si Vd. ha recibido esta comunicación por error,
por favor, notifíquelo inmediatamente al remitente y borre el mensaje junto con
sus ficheros anexos sin leerlo, copiarlo, grabarlo, distribuirlo o divulgarlo o
hacer cualquier otro uso de la información sin el consentimiento de Genebre
S.A. El correo electrónico vía Internet no permite asegurar la confidencialidad
o correcta recepción de los mensajes, por lo que Genebre no asume
responsabilidad alguna por los daños causados. The information contained in
this communication is confidential, may be privileged and is intended for the
exclusive use of the above named addressee. If you receive this communication
in error, please notify the sender immediately and delete it, and all its
attached documents. If you are not the intended recipient, you are expressly
prohibited from reading, copying, distributing, disseminating or, in any other
way, using any of the information without the Genebre S.A. consent. Please note
that Internet e-mail guarantees neither the confidentiality nor the proper
receipt of the message sent, so that Genebre shall not be liable for any
damages caused.
____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 © Publicaciones Help400, S.L.