Cancel
Showing results for 
Search instead for 
Did you mean: 

Teamcenter RAC and VDI

Valued Contributor
Valued Contributor

Good afternoon,

 

We work on a virtual environnement with non persistant session, and for now we mainly have %appdata% folder backup across login.

 

There is 3 main folders for the RAC installation : TCCCache, Siemens and Teamcenter who's created per user on his root directory C:\User\%username%....

 

1 : Does is possible to move them ?

2 : Where do I found those variables ?

 

Best regards

Adrien

 

 

Adrien Marmy, Designer / SystemManager CAx, Turck Interprox

Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 3.9.9.3

Development: .NET Testing: NX18**
9 REPLIES 9
Highlighted

Re: Teamcenter RAC and VDI

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
The FCCCache folder location is controlled in fcc.xml > FCC_LogFile.
Mine is set to C:\Siemens\Temp\$USER\fcc.log
Note: Java insists that you have $HOME or $USER in the path and you don't want $HOME.

The Siemens folder contains logs\TcSS\client\TcSSJavaLib.log which I don't care about. Always 0 size.

The Teamcenter folder contains RAC and SOA subfolders. The RAC folder can be moved but not the SOA. To move the RAC location, modify portal.bat to include:
set CFG_OPTS=
set CFG_OPTS=%CFG_OPTS% -user C:\Siemens\Temp\%USERNAME%
set CFG_OPTS=%CFG_OPTS% -data C:\Siemens\Temp\%USERNAME%
set CFG_OPTS=%CFG_OPTS% -configuration C:\Siemens\Temp\%USERNAME%

Then modify the start command to include it:
start Teamcenter.exe %* %CFG_OPTS% -vm …

There are other things in the users profile that may also be of interest to you besides folders. For instance, DMLauncher.log, DataShareManagerLaunch.log

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Teamcenter RAC and VDI

Valued Contributor
Valued Contributor

the part for the RAC location works fine !

 

But for the TCCCache this is another story.

 

I have uncomment the those properties :

 

<property name="FCC_LogFile" value="$appdata\$user\FCCCache\fcc.log|/tmp/$USER/fcc.log" overridable="true"/>

and

<property name="FCC_CacheLocation" value="$appdata\$user\FCCCache|/tmp/FCCCache" overridable="true"/>

I also added in the portal.bat the folowing :

if not exist %appdata%\%username%\FCCCache mkdir %appdata%\%username%\FCCCache

But I get this error message :

 

WARN  - None - 2019/06/05-14:11:32,255 UTC - chde-par-nxc00 - TCCS configuration directory doesn't exist.
WARN  - None - 2019/06/05-14:11:32,256 UTC - chde-par-nxc00 - No forward proxy configuration found. Configuring for direct connection.

 

I'm not sure about de $appdata.

 

Do you have an idea ?

 

Best regards

 

Adrien Marmy, Designer / SystemManager CAx, Turck Interprox

Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 3.9.9.3

Development: .NET Testing: NX18**

Re: Teamcenter RAC and VDI

Legend
Legend

Hi,

 

we also moved FCCCache, FCC log directory, .. , also RAC, but in a different way

 

for FCCCache and FCC logs

set the default settings with $HOME inside fcc.xml

 

<property name="FCC_LogFile" value="$HOME\Siemens\logs\fcc.log|/tmp/$USER/fcc.log" overridable="true"/>
<property name="FCC_CacheLocation" value="$HOME\FCCCache|/tmp/FCCCache" overridable="true"/>

 

change starttccs.bat inside e.g. C:\PLM\Portal\tccs\starttccs.bat

 

echo Setting the classpath...

call "%FMS_HOME%\tccs_classpath.bat"

 

add the next two lines e.g.

set PLM_USER_HOME=C:\Siemens\Temp\%USERNAME%

set LOG_VOLUME_LOCATION=%PLM_USER_HOME%\logs\tccs

 

if defined LOG_VOLUME_LOCATION goto TCCS

 

and add your PLM_USER_HOME to the following line

 

set TCCS_CMD="%TCCS_JAVA%\bin\java" -Xms%TCCS_MEM% -Xmx%TCCS_MEM_MAX% -classpath "%TCCS_CP%" -Djava.library.path="%FMS_HOME%/lib" -Duser.home=%PLM_USER_HOME% -Dsun.net.client.defaultConnectTimeout=90000 -Dsun.net.client.defaultReadTimeout=90000 %* com.teamcenter.net.commservice.TCCSMain

 

Try again

BR, Roman

 

Re: Teamcenter RAC and VDI

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor

You cannot use $appdata since that isn't a variable that Java is aware of. Hard code that portion of the path so that only $user is a variable. However, if you want to store the FCCCache (not TCCCache) in AppData then I would change the path to:
FCC_CacheLocation=$HOME\AppData\Roaming\FCCCache
FCC_LogFile=$HOME\AppData\Roaming\FCCCache\fcc.log

You do not need to pre-create the directory. Your test for validation is that the directory is created when Teamcenter starts. But I must warn you, storing the FCCCache in the users roaming profile will cost you considerable performance since it must be downloaded for each unique session which can be longer than simply recreating it or storing it in a common location on the network. I'd avoid putting large things in the users roaming profile.

 

Ref:

https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Teamcenter RAC and VDI

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Another way to avoid modifying each individuals fcc.xml is to modify the <fccdefaults> section in the FMS Master.

<fccdefaults>

<property name="FCC_CacheLocation" value="$HOME\AppData\Roaming\FCCCache" overridable="true" />
<property name="FCC_LogFile" value="$HOME\AppData\Roaming\fcc.log" overridable="true" />

</fccdefaults>

If you don't want to allow settings in the fcc.xml to override the defaults specified in the FMS Master then change the overridable value to false.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Teamcenter RAC and VDI

Legend
Legend

As @RandyEllsworth said

do not put the FCCCache inside %APPDATA%

FCCCache should reside on the local disk in a folder where the user has full access

 

Re: Teamcenter RAC and VDI

Valued Contributor
Valued Contributor

Thank you for your solution, I will try it tomorrow.

 

Since we work on non-persistant virtual workstation. We have in any case to load our profile everytime we take a machine.

 

With our actual PLM solution we already have our local cache in the %appdata% folder (in average 1-2Gb). Without lose of performance.

 

How big can be a FCCCache ?

Adrien Marmy, Designer / SystemManager CAx, Turck Interprox

Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 3.9.9.3

Development: .NET Testing: NX18**

Re: Teamcenter RAC and VDI

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
The default values for the size of the FCC are defined in the fccdefaults section of the FMS Master. The OOTB values are designed for a Development environment and not recommended for Production environments as stated by Siemens in the documentation.

I usually maintain a 4-1 ratio between read and write respectively. And the write value is determined by the largest assembly to be saved (varies by customer) and usually need to be readjusted over time and the cache size is dependent on system memory. There are five "magic" values for adjusting the read/write segment cache sizing (same as FSC) and the real way to determine those values is by using the tool provided by Siemens in TC_ROOT\fsc\bin\FMSCacheSizingTool_Ver_1_3.zip. Those are:
<FSC|FCC>_Maximum<Read|Write>CacheSegments
<FSC|FCC>_Maximum<Read|Write>CacheExtentFiles
<FSC|FCC>_Maximum<Read|Write>CacheExtentFileSizeMegabytes
<FSC|FCC>_Maximum<Read|Write>CacheFilePages
<FSC|FCC>_<Read|Write>CacheHashBlockPages

As a rule of thumb for the FCC, I usually start with 4GB read and 1GB write then adjust as needed.
FCC_MaxReadCacheSize=4GB
FCC_MaxWriteCacheSize=1GB

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Teamcenter RAC and VDI

Valued Contributor
Valued Contributor
Thank you Randy,

Works fine !
I will look into the FMS documentation

Adrien Marmy, Designer / SystemManager CAx, Turck Interprox

Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 3.9.9.3

Development: .NET Testing: NX18**