Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

[ Edited ]

I restarted the VM on which TC10 server is installed and I see this error on starting pool manager. Any idea what's wrong ? 2Tier RAC starts with no problems.

 

Syslog:

 

NOTE - 2016/4/12-10:45:29.625 UTC - NoId - SharedPreferenceList::init_and_load - Exception in initializing the shared memory : Unexpected exception.
- Teamcenter.CoreModelGeneral.tc at D:\workdir\tc101w0604_64\src\core\tc\sharedpreferencelist.cxx(235)
NOTE - 2016/4/12-10:45:29.625 UTC - NoId - Exiting - SharedPreferenceList::load Error initializing shared memory. Lock created is 1
- Teamcenter.CoreModelGeneral.tc at D:\workdir\tc101w0604_64\src\core\tc\sharedpreferencelist.cxx(140)
NOTE - 2016/4/12-10:45:29.625 UTC - NoId - Error during shared memory initialization. Falling back to use local per process implementation. - Teamcenter.CoreModelGeneral.Preferences at D:\workdir\tc101w0604_64\src\core\tc\preferences.cxx(771)

 

 

 

pool_manager_error.jpg

7 REPLIES
Solution
Solution
Accepted by topic author xplm2005
‎04-12-2016 09:23 AM

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

Share Memory is unstable in Tc10. Siemens PLM recommends to disable it in Tc10.


Larry Carpenter, P.E.
CAxPLM Architect @ Siemens Molecular Imaging
Past Board Member @ PLM World, Inc,

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

Hi Larry,

 

thanks for your response. Setting TC_NO_TEXTSRV_SHARED_MEMORY=TRUE will disable the shared memory, right ? If yes, it did not help. If no, could you please tell how to do that ?

 

I also found following message in Syslog:

 

NOTE - 2016/4/12-11:58:50.071 UTC - NoId - Exception caught while parsing preference data: Use askUserMessage ( ) or askSyslogMessage ( ) - Teamcenter.CoreModelGeneral.tc at D:\workdir\tc101w0604_64\src\core\tc\preferencexmlparser.cxx(183)
Preference data:

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

Set the following variables in tc_profilevars.bat to disable shared memory and pool manager started successfully.

 

set TC_USE_METADATA_SHARED_MEMORY=FALSE
set TC_NO_TEXTSRV_SHARED_MEMORY=TRUE
set TC_USE_PREFS_SHARED_MEMORY=FALSE
set TC_USE_LOV_SHARED_MEMORY=FALSE

 

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

According to a SFB the only thing you need to set is TC_USE_PREFS_SHARED_MEMORY=FALSE, any other shared memory is not a problem usually.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

You don't want to disable all shared memory, only the preferences shared memory (see SFB-Teamcenter-8568). Occassionally, shared memory can get stale and you need to update it.

  1. Shut down all services and processes.
  2. Run "clearlocks -assert_all_dead -upg" and "install -lock_db -upg".
  3. Modify TC_DATA\tc_profilevars.bat to add TC_USE_PREFS_SHARED_MEMORY=FALSE.
  4. Delete the store backing file, or the whole shared memory directory (TC_SHARED_MEMORY_DIR).
  5. On pool manager server, run "generate_metadata_cache -upg -force"
  6. Optionally, clean up your old logs.
  7. Run "install -unlock_db -upg"
  8. Startup all services and processes.

The shared memory dir, by default, is at %USERPROFILE%\Local Settings\Temp\V2007.1.8.20090825. Where V2007.1.8.20090825 is the version number of Teamcenter (yours will be different than shown). After deleting the dir, and starting up Teamcenter, the directory will be recreated. This time without the prefs.mem file since we added to not have it (step 3).

 

The metadata cache (step 5) is stored in a Dataset named SharedMetadataCache of type Fnd0SharedMetadataCache. When regenerating, do:

  1. generate_client_meta_cache -upg -t delete all
  2. generate_metadata_cache -upg -force
  3. generate_client_meta_cache -upg -t generate all

Note: All the -upg statements are shorthand for -u=infodba -p=infodba -g=dba.


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

Thanks Stefan and Randy for all the info.

Re: Error during shared memory initialization: sharedmemorypreferencemgr.cxx::Handle a remap

For now I will keep the 4 env variables (to disable shared memory) as server is running and other users are accessing the server. I will set only TC_USE_PREFS_SHARED_MEMORY=FALSE during next downtime.