|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
http://www-cad.fnal.gov/PLMWorld2008/Teamcenter%20Unified/The%2520Network%2520is%2520Slow!.pdf
2 R( q8 U* X' }# Ehttp://www.plmworld.org/p/bl/et/blogid=43&blogaid=218
/ X5 F/ g1 L p7 s! qhttps://support.industrysoftware.automation.siemens.com/docs/teamcenter/Network_Performance_Tuning_V6.6.pdf
( ^9 F8 b. g$ \
5 h6 Z* l6 z" q8 }) cTeamcenter is Slow! Teamcenter Performance Bottlenecks & Mitigation
. Q8 r) |+ C+ x& L9 \+ F ( f* `; T6 {* r E v8 }7 N
Larry Carpenter4 i% B+ I- a7 V' b" N
At the Chicago-Wisconsin RUG Fall Conference in October 2012, I gave a presentation on common Teamcenter performance issues and solutions along with listing, in one place, many other past Teamcenter performance presentations and white papers. It was very well received by a standing room crowd, so I thought I'd share it with the rest of the PLM World community. Here is a link to the presentation (you must be a TCUA SIG member to view it): http://www.plmworld.org/p/do/sd/sid=3758&type=0( J! B( m5 ~* _! v! q' k, ?% _
For those unwilling to join the TcUA SIG to view it, I wrote an abbreviated version here:
9 T; V- r$ L/ t+ E5 m9 ]Why Performance Matters
, z! |& x/ Q7 s1 \3 t- P8 g• Productivity – doing more work with less$ g+ c( L. Y8 S; F- s: d
o Improve end user productivity d0 t t5 C) E( u! l
o Improves administrator productivity
" |, A$ V8 z# F# o fewer help desk calls responding to or fixing preventable problems# u9 m9 ^1 _# s& A& r- S* p1 D( _
• Reliability- s- j+ }+ e/ ^. R2 \/ @
o A well tuned Teamcenter environment also improves system stability and uptime.
# B" d9 _2 ^$ J! P0 ^/ [/ y# Qo Less opportunity for data corruption: ]' e {# }. T* s9 H5 p* Q
o Fewer operational errors/problems
0 h" ?0 r( z- k3 Y6 b! M• Cost Savings0 {2 a9 N8 j; H" M2 ~4 G. F
o Less waiting means less time wasted.
T. I. E8 }: x) b \* v$ EQuick Case Study: Company ‘S’
! `! s7 u% F U: n: h U7 kPerformance was so bad that something which used to take 10 minutes was taking 2 hours to do.Did pretty much everything wrong, performance-wise, at first but ultimately fixed every major problem. What took 2 hours now only takes 2 minutes.. k* L7 z3 J' V5 W
See my March 2012 article on PLM World’s website for details:1 g i6 |' v6 f8 N5 j5 k
Teamcenter Performance – Hard-Earned Lessons: http://www.plmworld.org/p/bl/ar/blogaid=152
! ~3 z" i4 p; l% G- |$ Y* E0 d5 ?Common Performance Bottleneck Causes
: E3 |( W7 @4 Y: @8 r& T/ kUsing OOTB settings — OOTB settings are intended for development environments; not production environments.4 _' g3 G$ F6 o; q! Z4 I1 F
Overloaded servers — Putting too much on a single server.
8 s1 g$ e9 N4 oOperating system settings — Network settings most common (e.g. TCP parameters).
/ Y7 Y5 K: h+ T1 ` M7 ALack of performance monitoring & tuning — Performance doesn’t improve all by itself. It requires human intervention to determine root cause and address it.- T' s! J! l( V
Databases – The Most Likely Culprit
$ [5 v1 B! z: e3 x4 e0 h8 U• Database performance is highly sensitive to hardware, software, and DB configuration.: V* n V' F f6 O9 c9 R: P
• DBAs at companies generally don’t do performance monitoring and tuning of your Teamcenter DB.2 P1 t0 I% g" w
• It’s typically the last place that Teamcenter administrators look for performance issues rather than the first.
, F" q$ `2 i' o% J2 c# f( |Mitigating Database Server Bottlenecks
, p/ f3 Q/ c) w# L+ s• Must use dedicated DB server
; _; z! ?# u0 N9 {, Oo Do not use your DB server for anything other than your Teamcenter production database. This includes not serving additional databases from the same server.
V9 c" O4 z. k! P0 y5 o• Must have fast dedicated storage for DB files
2 t, r! B2 i' Y0 c' `" b; C- lo Avoid using a NAS device; especially a shared NAS. Use DAS (Direct Attached Storage) instead.
* X2 ?( X* X" g$ o' To Use multiple fast disk spindles partitioned with proper RAID levels according to the DB vendor & SPLM recommendations.8 K4 ^1 e" Y. ]9 a7 g: ^! B
o Split DB data, temp, and log files across those RAID partitions according to DB vendor & SPLM recommendations.
" D; p+ P! E8 N* e* So Use disk controllers with a battery/flash backed cache.
, r1 m+ v, W q$ Qo Use multiple disk controllers if possible.
: A- k \+ z( G% N& H% a* x• Cram the RAM
% y/ N( R. a' { h7 J( to Ideally should be greater than the database size or in-memory footprint. Otherwise disk swapping/paging will occur.
" _+ M7 V& K, E( e0 l/ d• Use 64-bit OS & DB software! U% u7 g. x3 S p0 c% u
o 32-bit software has severe limitations regardless of whether you use “/3G”, AWE, or PAE settings to access memory beyond 3-4G. It’s still a bottleneck.; V3 M- K7 J6 O; C" v
• Use a good quality network adapter(s)# g5 F+ n) e4 ^. X( o) h
o Often overlooked as potential source of bottleneck (e.g. packets/sec limitations). Consider multiple NICs “trunked” for better throughput.. U8 `3 [: S- ~
• DB maintenance tasks$ S( _' t- D) \7 e
o Update statistics and rebuild indexes regularly.% Q, J* k+ B6 Q7 p, H8 F
Common Teamcenter Server Bottleneck Causes
) z0 ]: \% M! r: |" [) e& u4 K) Z$ l• Overloaded Tc Servers
1 R* D. y3 w% C7 m+ g. k• Poor Web Tier Configuration
q$ w' Q- u3 A# w# B! p1 E• Poor FMS Configuration
# Z& z P( y1 S4 C• Debugging Turned ON
& Q) I \/ q8 X* }2 M• Rich Client using OOTB settings( H2 ]( G1 U7 |
‘Unload’ Overloaded Teamcenter Servers
( w7 s$ l# [6 {4 ]* d. g; P• Put Dispatcher modules on separate computers away from other Tc Servers.
" R; P; O& E. F• Separate the Web & Enterprise tiers from the Tc Corporate and Volume servers.
% b3 o, I& r* ?6 f• Use load balancing for Middle Tier & FMS:5 P+ o( ?$ c6 _
o Use multiple Web/Enterprise Tier servers to open up potential hardware resource bottlenecks (e.g. CPU, RAM, network adapter I/O, disk I/O, MB bus, etc.).% A; i& X- \: v. K+ n
o Set up multiple FSC cache servers to take load off busy volume servers/storage.% c8 A- H j+ a: [+ }& [% \0 q/ B
Web Tier Configuration
* k! G% I2 b2 N; N. g; S; R: m9 q• Do not use port 80 or 8080
! l% g! Q3 k9 I& G- V! R. qo HTTP traffic on those ports is considered web browsing traffic and is therefore given lowest priority on any network. Can also cause randomly dropped connections.' L5 l* D( S! V `+ ~
• Enable http compression if not using WAN acceleration+ R; {4 x( ^8 o! Q: [6 S N
o Must be done on both web server and on clients to take effect.
' M$ M/ G! v: o1 Y1 B8 Z• Change/tune OOTB settings for Web Server/App
& i! z: e+ o7 n" O$ b# S6 d* B- ]! Co E.g. timeout values, max # of threads, Java memory, etc.
5 d7 U7 b ^/ d& P6 Oo Read tuning guides specific to your chosen web server/app
% x% X; v1 D( q" [# L6 ]* h7 O• Scale it up or sideways
- v p9 K3 i! E; \$ lo Add another web tier server, or increase # of work processes (e.g. Web Garden mode for IIS).
6 }9 g" E+ t% ` H# K. x" d4 jCommon FMS Bottleneck Causes
, Y5 }& o j$ D/ U; ?% {+ o• Data improperly routed4 h( |& F' w" \
o E.g. Forcing data to go through a remote FSC server over a WAN and back again over the same WAN instead of simply pulling it directly from a nearby Volume/cache server.5 `9 Y8 I5 Y' F/ i+ g7 m7 Y Y
• Using OOTB settings6 {) } s+ Y% H8 G& a/ h3 @
o For development purposes only, remember?
* R+ }8 E9 j& z) \5 A) z0 t• Missing client IP address subnets, P' X: R1 }1 e( X. h) m
• No load balancing& J5 p9 \2 F8 q1 w
• Not using remote cache servers for WAN users
( x9 h, U( {9 M. k1 o• Not using remote volume servers for WAN users
' z0 z$ k! I- G% T8 F, l5 E% uFMS Configuration
; s' ?. e* m. d0 d/ p5 c' g• Ensure routing is correct; q& Q+ ?# k) K/ n
o Between multiple FSC groups via entry/exit/link parameters0 z. S6 E7 q5 N D. F7 M7 e3 @
o Between clients and their assigned FSC servers by using complete and accurate ‘clientmap’ parameters for ALL clients.* L: G; P+ I. y4 l, A
o Use correct transport algorithms for LAN and WAN users.1 w- k2 t- {* \5 i' Z; |
• Tune FSC/FCC cache settings1 W+ M/ u) F4 d5 |" K6 Q
o Simply picking a total read/write cache size is not enough.. v# u& o1 R; a& [, K5 Z9 T
o Read “Sizing the FMS fast cache” in the Teamcenter help documentation. There is also a FMS cache sizing tool available from the GTAC web site. Link to FMS Calculator e; ?8 Z; C+ ^) Q
• Ensure correct client maps
( l- f* L& D8 T/ L1 p9 V+ \0 ~! v( y1 So Determine ALL potential client IP address ranges and where they are located. Don’t forget to account for VPN IP addresses.6 ]) L, C, ~/ k
o Place client maps in the closest FSC group to their location.+ p; s0 Z6 d- x- F$ ?& K
• Use multiple FSCs for load balancing( D9 @2 E% u$ Y r6 f
o Use “front-end” FSC cache servers to reduce load on Volume servers. (Requires disabling of FSC direct routing)' Q0 \% f0 Y" l2 S( @; U7 T
o Use redundant FSC cache servers to load balance each other. Also provides fail-over.1 K+ w, r9 p; r# X& O
• Place FSC cache servers close to users" f/ x, k# Q2 H" n
o Greatly improves read performance (load time) over a WAN for groups consuming shared data.! Z+ o; d% ?" u; S, K( c8 E$ p
• Place Volume servers close to users
& o0 |8 I8 ~6 u2 B* `& Y& b' c5 q, co Use Store & Forward or at least place remote volumes near remote users. (Backups of remote volumes are critical)
, u& ?- T1 X$ U5 ]o Greatly improve write performance (save time) over a WAN especially for CAD data.
' q6 m% J+ v! h9 b$ R• Prepopulate FSC caches: E5 e8 X5 e; F' D( L
o Run a nightly script to prepopulate shared data across FSC caches.
( f4 u6 J' ?+ Y) D: |Misc Teamcenter Changes
- w" c# l2 ^- Q+ g( k2 ^• Disable logging and other debugging tools. Turn them on only when needed. Examples,
( ^4 b) ~5 T. Zo TC_SECURITY_LOGGING=OFF
, t9 K, V$ v2 g! L8 X( q: wo TC_APPLICATION_LOGGING=OFF% E3 Q/ r5 x- G( v7 ~
o TC_SLOW_SQL=-1
8 N6 ~6 e, x7 {0 r* h( J$ {3 t• Rich Client ‘Teamcenter.ini’ configuration:6 F# [& d+ Q! O
o Modify Teamcenter.ini file to increase Java Memory and other settings. Will improve performance/stability when perform large operations (CAD, PSE expansion, large Workflows).+ x! o4 [. C- P; I1 T& Y; Y
• Enable FCC File Warming0 V; B/ u( ~( {! ?, G7 Q
o Improve startup time by having FCC and Tc files pre-loaded at OS login.4 d: J7 s; T I! D$ K; Q3 B$ S
Network Performance
- K# j# K; O0 l8 Q- E• Use a hardware-based WAN accelerator if using Teamcenter between multiple facilities over a WAN.
) `% _' G0 T6 qo If none then make best use of software-based Web server and FMS WAN acceleration settings. (i.e. http compression & FMS compression)
6 x# f. k; m; D• Optimize OS network settings" f" t: f% j. t' F; O2 ]1 Y
o OOTB settings are insufficient6 b7 ~: t* i% r9 a- w
o Applies to both servers and clients! Y7 k8 Q2 Q' c/ t4 l: [0 P
o Examples, increasing # of tcp ports, disabling NAGLE algorithm, increasing buffer sizes, trunking multiple NICs, enabling Compound TCP, Large Windows Scaling
. j9 p3 S; X! m; z; n. i9 QRecommended Server Changes (Windows)
2 {4 y' K+ @8 {7 B$ ^9 jSee Presentation.- R7 n. O, j+ v F2 E1 b; T" ?
Recommended Client Changes (Windows)$ A( k0 |, e- v w
See Presentation.( H$ k" Y* V% A5 m' H+ f
Performance Monitoring Tools
* `2 S5 u, t/ k* |* r, p& R5 _# E• Some useful performance monitoring tools:
$ z3 h7 g* X' u2 R7 @/ P8 f• Performance Monitor (comes with Windows) q. ^" [$ ]9 ]8 B+ h# |# m0 a
• Used to monitor OS, Teamcenter, and SQL use of resources" h1 q& N: f2 D/ _+ J$ X# {
• Wireshark (freeware network packet sniffer)
* g) Z8 M; m# X8 b• Used to help identify network TCP performance between computers.0 D1 C5 n* t( l; M$ t
• Available at http://www.wireshark.org/
2 O) S. j, V) g3 p( `- K/ s• Sysinternals Suite (free from Microsoft web site)
- @! o6 a6 C0 D4 _. x• http://technet.microsoft.com/en-us/sysinternals/bb8420622 n, C4 l0 D4 ^0 g" F6 v
Reference Materials/ N$ J. ], c! {6 d" v5 b
• Available on GTAC Web Site @ http://support.industrysoftware.automation.siemens.com/docs/teamcenter/$ a7 W& {( R/ x- ~2 `, z
o Teamcenter Deployment Guide4 {$ `4 c- e1 l# g
o Teamcenter Network Performance Tuning
7 Z1 S" Y7 U) a, ~" ~o JBoss 4.2.2 Installation & Tuning Guide, f. _: Q" _$ s: m* M9 j& @
o Optimizing Teamcenter Client Performance
9 O% F5 M; |. |% d- L/ R! o7 _/ so Teamcenter System Performance Analysis
p6 _& ]; A* d9 [/ M+ s• Oracle documentation & web sites; X8 Q. t- D+ n! O
• MS SQL Server documentation in addition to:3 O1 Z! ^, G' k. M/ I
o Best Practices for Running Siemens Teamcenter on SQL Server
3 [4 {7 j, T! K* r http://download.microsoft.com/download/7/3/6/7365D2BB-BB34-4D28-A128-F2C8FBA6E995/Siemens-Teamcenter-and-SQL-Server-Best-Practices.pdf
* w* y) B, C2 V- b9 D, M V! K. wo Siemens Blog on Technet) A$ L& u* h g" k* P: V
http://blogs.technet.com/b/sql_server_isv/archive/tags/siemens/( r. E) v e' e& T% e) I
o Siemens-Teamcenter-SQL-Resource-Page
6 ]% t0 ^% D7 h* z( R$ B3 w http://blogs.technet.com/b/sql_server_isv/p/siemens-teamcenter-sql-server-resource-page.aspx
4 k; l. l y' F• Past PLM World Conference Presentations available at www.plmworld.org,
% M; x2 e2 @7 go Teamcenter 4-Tier Deployment – Best Practices
. n C$ l* Y B9 S go Teamcenter – Database Performance
: M4 \( @: w$ w, ^/ j) b6 @. y! Do JBoss Optimization for Teamcenter
D3 C6 N9 i3 mo Optimizing Teamcenter Client Performance
" q2 | B) X. Y2 {0 l$ g6 q: l: Io Teamcenter Database Server Configuration & Tuning" u% S7 H0 g9 g% Q
Contact Information% \" S) l. P* z# H* c
Larry Carpenter P.E., PLM World Teamcenter SIG Chair, tcua@plmworld.org$ _5 p8 Z! c5 i5 a" @, h) I
Teamcenter UA SIG: http://www.plmworld.org/TC_UA
* Z4 f. m% u% z* |LinkedIn: http://www.linkedin.com/pub/larry-carpenter-pe/44/5b8/aaa
4 ~$ K6 A6 ^1 n* ?6 L9 G" l+ a% oAlternate Contact Info: ideas2nx@plmworld.org, larry.carpenter@siemens.com: Q) ~& ]+ x2 L6 j4 F
# l( d9 o* e- {9 J |
|