This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Sep 18, 2017, 1:05 AM
15 Posts

Memory issues using LSXLC

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: ODBC
  • Replies: 2

Hi

 

I have a job to export data from over 400,000 documents to a table in MySQL. The table in MySQL has 187 columns in it - not ideal or even close to being normalised I know. The issue I'm finding that I'm watching memory just disappear when I run. To the point that after 3000 records inserted memory's gone from 3.1gb used to 6.5gb used.

 

My connection settings are

 

    Set lcConnection= New LCConnection("ODBC2")
    lcConnection.server="xxxxxxx"
    lcConnection.userID=ASPXUserName
    lcConnection.password=ASPXPSW
    lcConnection.metaData="database.table"
    lcConnection.mapByname=True
    lcConnection.Connect

In my write section, after doing lots of adds to fields I'm doing...

 

    lcConnection.insert fields
    lcConnection.action LCACTION_RESET
    Set fields=Nothing

 

The above hasn't seemed to cleared any memory, just keeps climbing. I put in the LCACTION_RESET as a guess but doesn't seem to help. Is there a setting I'm missing in the connection? The version of MySQL we have is quite old 5.022, but I am using the most current ODBC driver. We have been promised an updated version by our Sys Admin, but it's a waiting game.  Also, if normalising the tables may be a solution let me know.

 

This is a one off initial load, from there on it'd be a nightly agent to add/update documents changed during the day. Am concerned that if the memory leaks at this stage what will be the effect long term.

 

Any suggestions welcome.

 

Thanks

 

Cameron

 

Sep 20, 2017, 10:38 PM
15 Posts
I'm ready to throw in the towel

This is just getting worse. I've tried writing a simple agent to update some data in MySQL using LCConnection.update.  Trying to debug, Notes crashes. Turn Debug off  and run agent Notes crashes.

Set lcConnection= New LCConnection("ODBC2")
    lcConnection.server="xxxx_MySQL"
    lcConnection.userID=ASPXUserName
    lcConnection.password=ASPXPSW
    lcConnection.metaData="xxx_xxx.xxxx"
    lcConnection.mapByname=True    
    lcConnection.writeback=true
    lcConnection.Connect
    
    
    sel="SELECT * from xx_xx.xx where ClaimNo='00025004'"

    'recCount=lcConnection.Select(keyFields, 1, fields)
    recCount=lcConnection.Execute(sel, fields)
    lcConnection.fetch fields,1,1
    
    Set Field=fields.lookup("BusinessUnit")
    field.value="Change this"
    
    lcConnection.Update Fields                <------------------------------------- Crashes here

   lcConnection.Disconnect

If it's this flakey and buggy on the client how can I trust it on a server?


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal