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 ?
Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 184.108.40.206
Development: .NET Testing: NX18**
Solved! Go to Solution.
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"/>
<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 ?
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...
add the next two lines e.g.
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
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:
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.
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 ?