cancel
Showing results for 
Search instead for 
Did you mean: 

Why Memory_size_per_connection value is -1?

gabriela_urqua
Explorer
0 Kudos

Hello Everybody,

We just upgrade our Hana Platform from SPS82 to SPS96.

For monitoring the memory usage, we usually use the SYS.M_CONNECTIONS view. With the SPS82 in the M_CONNECTIONS view, we got different values in the parameter memory_size_per_connection that represents the allocate memory for the connections. Those values were always positive values.

But now in the SPS96 when we review the memory_size_per_connection parameter, we are getting the value -1 for all the connections. What does it means? Why we got this value?

I'll appreciate your help.

Best regards,

Gaby


Accepted Solutions (0)

Answers (5)

Answers (5)

oliver_sviszt
Explorer
0 Kudos

Hello Everyone,

In our case the situation is the same: the column displays -1, althought both parameters are set. Could you find any fix to this problem?

gabriela_urqua
Explorer
0 Kudos

Hello!!

I reviewed and we have memory_tracking switching to on, also we verified and we have the statement:memory_limit set to 128, but we still have the same issue

Regards,

Gaby

Former Member
0 Kudos

Can you run SQL: "HANA_Configuration_Parameters" (SAP Note 1969700) and attach the result?

gabriela_urqua
Explorer
0 Kudos

Hi Martin

This is the result

FILE_NAMESECTIONPARAMETER_NAMERECOMMENDED_VALUESAP_NOTEDEFAULT_VALUECONFIGURED_VALUEREC_HOSTDEFAULT_HOSTCONFIGURED_HOST
EVALUATION TIME:25/06/2015 14:42
HANA VERSION:1.00.096.00.1432206182
SPS:9
SCALE-OUT:No
REPLICATION:No
STAT. SERVER:Embedded
global.iniauditing configurationglobal_auditing_statetrue863362 (security)-- HANA internal ---- not set ---- HANA internal ---- not set --
global.iniexpensive_statementenabletrue2000000 (analysis improvements)false-- not set ---- not set --
global.inimemorymanagerstatement_memory_limit-- individual value --1999997 (memory consumption)128
global.inipersistencelog_backup_timeout_s300 to 3600164518390086400
global.inipersistencelog_modenormal1645183normaloverwrite
global.iniresource_trackingenable_trackingon1999997 (analysis improvements)off
global.iniresource_trackingmemory_trackingon1999997 (analysis improvements)off
global.iniresource_trackingservice_thread_sampling_monitor_thread_detail_enabledtrue2114710 (analysis improvements)false-- not set ---- not set --
indexserver.inisqlscriptenable_select_into_scalar_udftrue2160814 (terminations)-- HANA internal ---- not set ---- HANA internal ---- not set --
indexserver.initransactiontransaction_history_record_limit-- individual value --1910610 (wrong results)1000000-- not set ---- not set --
indexserver.initransactiontransaction_history_size_limit-- individual value --1910610 (wrong results)10240-- not set ---- not set --
xsengine.inipersistencelog_segment_size_mb64 to 10242062080 (backup overhead)8-- not set ---- not set --
indexserver.inirow_engineconsistency_check_at_startup-- no recommendation --n/a    (erroneous SAP delivery)-- HANA internal --page, index-- no recommendation ---- HANA internal --saphana-prod
nameserver.inistatisticsserveractive-- no recommendation --1917938 (monitoring)truetrue-- no recommendation --

Former Member
0 Kudos

This output indicates that both parameters in question are set to a blank / NULL value. You have to set them to 'on' and a limit value as mentioned above.

gabriela_urqua
Explorer
0 Kudos

Hi Martin,

Sorry we had to restart our HANA and so that we turn off the parameters. We forgot to turn on before running the script. Now we turned on and the result is

FILE_NAMESECTIONPARAMETER_NAMERECOMMENDED_VALUESAP_NOTEDEFAULT_VALUECONFIGURED_VALUEREC_HOSTDEFAULT_HOSTCONFIGURED_HOST
EVALUATION TIME:25/06/2015 15:25
HANA VERSION:1.00.096.00.1432206182
SPS:9
SCALE-OUT:No
REPLICATION:No
STAT. SERVER:Embedded
global.iniauditing configurationglobal_auditing_statetrue863362 (security)-- HANA internal ---- not set ---- HANA internal ---- not set --
global.iniexpensive_statementenabletrue2000000 (analysis improvements)false-- not set ---- not set --
global.inimemorymanagerstatement_memory_limit-- individual value --1999997 (memory consumption)128
global.inipersistencelog_backup_timeout_s300 to 3600164518390086400
global.inipersistencelog_modenormal1645183normaloverwrite
global.iniresource_trackingservice_thread_sampling_monitor_thread_detail_enabledtrue2114710 (analysis improvements)false-- not set ---- not set --
indexserver.inisqlscriptenable_select_into_scalar_udftrue2160814 (terminations)-- HANA internal ---- not set ---- HANA internal ---- not set --
indexserver.initransactiontransaction_history_record_limit-- individual value --1910610 (wrong results)1000000-- not set ---- not set --
indexserver.initransactiontransaction_history_size_limit-- individual value --1910610 (wrong results)10240-- not set ---- not set --
xsengine.inipersistencelog_segment_size_mb64 to 10242062080 (backup overhead)8-- not set ---- not set --
indexserver.inirow_engineconsistency_check_at_startup-- no recommendation --n/a     (erroneous SAP delivery)-- HANA internal --page, index-- no recommendation ---- HANA internal --saphana-prod
nameserver.inistatisticsserveractive-- no recommendation --1917938 (monitoring)truetrue-- no recommendation --

Thanks for your help

Former Member
0 Kudos

For me statement_memory_limit still appears to be empty. What is the result of:

select * from m_inifile_contents where key = 'statement_memory_limit'

Former Member
0 Kudos

You said you disabled parameters before the restart - is it necessary for each restart or was there a specific reason?

(sorry, I am new to HANA)

Former Member
0 Kudos

No, you can keep them set.

gabriela_urqua
Explorer
0 Kudos

Hi Martin

Sorry for the delay but I don´t have connection all the time for this HANA system. The result of the selec is:

FILE_NAMELAYER_NAMETENANT_NAMEHOSTSECTIONKEYVALUE
global.iniDEFAULTmemorymanagerstatement_memory_limit
global.iniSYSTEMmemorymanagerstatement_memory_limit128
Former Member
0 Kudos

This is completely shuffled: The section is in the tenant column, the parameter name is in the host column and the parameter value is in the section column. So something went completely wrong when setting the parameter. Can you tell me how you did it? Do you use MDC (multi-tenant database containers)?

gabriela_urqua
Explorer
0 Kudos

Thank you Lars and Martin, I am reviewing both notes, I appreciate your help!

Regards,

Gaby

Former Member
0 Kudos

If you have already set memory_tracking, you should additionally set statement_memory_limit due to the bug described in SAP Note 2164844.

lbreddemann
Active Contributor
0 Kudos

Is memory_tracking switched to ON on this SPS 9 system?

If not, you might want to change that setting.

Also see

1999997FAQ: SAP HANA Memory

- Lars