|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
http://www-cad.fnal.gov/PLMWorld2008/Teamcenter%20Unified/The%2520Network%2520is%2520Slow!.pdf
6 ^& d; S/ Z# U) t0 u0 L P" Ohttp://www.plmworld.org/p/bl/et/blogid=43&blogaid=218 ) A7 W& ^8 S4 n& j5 z) z& ^4 _# e
https://support.industrysoftware.automation.siemens.com/docs/teamcenter/Network_Performance_Tuning_V6.6.pdf' u3 c2 h8 u0 A: [" V# V
: l0 I. n' L0 V3 D0 Q( q$ A
Teamcenter is Slow! Teamcenter Performance Bottlenecks & Mitigation
6 m& M" W9 g3 s/ _. L$ m# F2 k
4 S8 T) Q" p/ E3 Z4 LLarry Carpenter$ s: q i2 S( H3 U# H9 { S4 q
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) u6 H9 O5 ?* s( H D' P
For those unwilling to join the TcUA SIG to view it, I wrote an abbreviated version here:, D$ j! b' r: K( y+ M8 f
Why Performance Matters' J, F- V. h5 o0 Z+ j! `/ x$ N8 ~
• Productivity – doing more work with less! @5 i& y, @0 `
o Improve end user productivity2 H+ I. S# a6 f
o Improves administrator productivity7 E0 {- u7 E8 k2 }
fewer help desk calls responding to or fixing preventable problems* X" Z, ~& t9 u% m' c6 _
• Reliability/ d2 M1 X) I9 C
o A well tuned Teamcenter environment also improves system stability and uptime.
5 Q+ e$ j2 r4 Do Less opportunity for data corruption, S& ?9 T* X; V$ d3 l1 N
o Fewer operational errors/problems
N5 q0 u. N/ f3 M4 A• Cost Savings
* C# Y2 @* r' R2 I5 S# Mo Less waiting means less time wasted.
8 ^5 u+ @. I$ v; O8 GQuick Case Study: Company ‘S’% k4 i/ b4 j! w0 e: A6 q0 f' s
Performance 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.: o! M/ Q7 ]" i( w
See my March 2012 article on PLM World’s website for details:
/ O1 v5 c) V% W4 kTeamcenter Performance – Hard-Earned Lessons: http://www.plmworld.org/p/bl/ar/blogaid=152
% n1 [8 f* P$ u$ UCommon Performance Bottleneck Causes
, \5 i3 m$ S d2 K/ hUsing OOTB settings — OOTB settings are intended for development environments; not production environments.
8 g4 p% _' K5 B( M8 U8 b- J/ c8 _Overloaded servers — Putting too much on a single server.
: s7 H3 x- n- Z; k& E/ W0 ?Operating system settings — Network settings most common (e.g. TCP parameters)., b. [! _# ?; n0 F9 F# I& w
Lack of performance monitoring & tuning — Performance doesn’t improve all by itself. It requires human intervention to determine root cause and address it.
7 x% `2 q0 @) W2 J$ XDatabases – The Most Likely Culprit
) U7 r, f5 v! u: m1 x e• Database performance is highly sensitive to hardware, software, and DB configuration.6 T+ w! K4 y ]5 I( M* L3 w7 y
• DBAs at companies generally don’t do performance monitoring and tuning of your Teamcenter DB.
9 E: a# h& ?+ ]& |. D• It’s typically the last place that Teamcenter administrators look for performance issues rather than the first./ O( b) d% ^8 J$ [
Mitigating Database Server Bottlenecks1 q7 M+ ]; g% N* n. F+ u
• Must use dedicated DB server
; S5 R1 R) S# E7 E) Ko Do not use your DB server for anything other than your Teamcenter production database. This includes not serving additional databases from the same server.7 n u7 {' G2 C; u
• Must have fast dedicated storage for DB files
1 s% y% |1 m6 F6 @$ N' r( oo Avoid using a NAS device; especially a shared NAS. Use DAS (Direct Attached Storage) instead.& @0 k4 k& t+ {- Q- c
o Use multiple fast disk spindles partitioned with proper RAID levels according to the DB vendor & SPLM recommendations.
1 M7 H) ^' n; r4 }o Split DB data, temp, and log files across those RAID partitions according to DB vendor & SPLM recommendations.2 m+ y' Q; x+ o; N+ y
o Use disk controllers with a battery/flash backed cache.- Y- r% C9 t$ \5 e$ i; Z
o Use multiple disk controllers if possible.1 |% r% a5 q8 q/ ~0 K
• Cram the RAM+ x' x% v4 j$ M! B8 _/ L
o Ideally should be greater than the database size or in-memory footprint. Otherwise disk swapping/paging will occur.
. y+ \3 m- F0 i' R* J3 Q• Use 64-bit OS & DB software8 X b9 O6 A+ z3 [1 G
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., y% b( j9 _1 k' l
• Use a good quality network adapter(s)! X: J4 T# B Y# d% m
o Often overlooked as potential source of bottleneck (e.g. packets/sec limitations). Consider multiple NICs “trunked” for better throughput.5 j) r) T3 _# \& K
• DB maintenance tasks" e* u. I e% L
o Update statistics and rebuild indexes regularly.& i# B. b3 C S
Common Teamcenter Server Bottleneck Causes
) i c# @2 f6 h' x6 U, _• Overloaded Tc Servers1 B# P3 ~0 s6 ]' B# D4 @
• Poor Web Tier Configuration
9 z3 G6 R8 R4 `3 ?• Poor FMS Configuration2 H0 M, r4 _2 r
• Debugging Turned ON! w* y+ d; ?2 B% p
• Rich Client using OOTB settings
* w. {7 I/ u4 I9 D6 O( G! q/ e" E/ U‘Unload’ Overloaded Teamcenter Servers
8 s6 `9 Z% y- W• Put Dispatcher modules on separate computers away from other Tc Servers.
4 @1 Y4 D1 a" v3 [+ V/ E3 c9 {• Separate the Web & Enterprise tiers from the Tc Corporate and Volume servers.
5 F1 N) o& \, |- i2 v• Use load balancing for Middle Tier & FMS:+ N& I/ Y$ V8 r7 D, Z
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.).: s! v& I* ?& d' A: b) n5 z; a
o Set up multiple FSC cache servers to take load off busy volume servers/storage.. c/ s& {- c8 k
Web Tier Configuration- f5 i \: r; l G! r: p: p
• Do not use port 80 or 8080& j% P# \2 A6 f% q; X+ Y
o 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.+ p8 C# i0 ^4 V
• Enable http compression if not using WAN acceleration
) M1 F4 f" T! n. ], n# u7 P# Uo Must be done on both web server and on clients to take effect.
6 G, J0 ]* F: L, C$ s• Change/tune OOTB settings for Web Server/App r3 g: ?* k! N5 Q) e1 V% i
o E.g. timeout values, max # of threads, Java memory, etc.
+ @$ I) l& D8 N W* X+ Xo Read tuning guides specific to your chosen web server/app
/ K$ [$ v. E9 t. A* d• Scale it up or sideways
! D. Z/ F1 \$ x/ to Add another web tier server, or increase # of work processes (e.g. Web Garden mode for IIS).
6 t2 g5 S/ ?: ~/ Q1 e: \Common FMS Bottleneck Causes
- T/ ?/ W6 Q# G0 b R8 s- ^2 p) P c4 P• Data improperly routed$ X5 |. }, w# d6 i {2 T
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.; j% W+ ]. F! b! j% W
• Using OOTB settings, o, m% }! a% o$ H
o For development purposes only, remember?, ?$ L6 |2 T) j/ z7 w% k
• Missing client IP address subnets
( @9 v# |8 ~$ ]. M+ w• No load balancing( D+ ]) u4 T- \
• Not using remote cache servers for WAN users
! x d$ u' e; d0 g+ f4 H• Not using remote volume servers for WAN users0 h& _# T& i( E
FMS Configuration
4 W$ P% u; t: l4 W) g( G• Ensure routing is correct
4 _8 ]+ b$ G8 J* L. u- Xo Between multiple FSC groups via entry/exit/link parameters& @, ^! N/ _0 t4 t7 V) @* T# _
o Between clients and their assigned FSC servers by using complete and accurate ‘clientmap’ parameters for ALL clients.
. n" m! C( w) i5 to Use correct transport algorithms for LAN and WAN users.
6 m+ _" s% z$ j( ]3 W1 i7 E8 r• Tune FSC/FCC cache settings: v, L6 u" a4 J- F
o Simply picking a total read/write cache size is not enough.
. W- n* V1 W$ no 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( s' z, [0 T' O* l# o: j' N1 a5 R
• Ensure correct client maps* h# }% z# P8 O$ p8 h3 }
o Determine ALL potential client IP address ranges and where they are located. Don’t forget to account for VPN IP addresses.0 ? C3 R. q; F& ]2 \2 ?. A3 ` @
o Place client maps in the closest FSC group to their location.1 B0 W# S6 b- g
• Use multiple FSCs for load balancing
* D7 P9 l) S% P. Q2 Q; N0 [' O* Lo Use “front-end” FSC cache servers to reduce load on Volume servers. (Requires disabling of FSC direct routing)
( O( h% I9 G7 n$ |. W* z+ z: r0 y0 ro Use redundant FSC cache servers to load balance each other. Also provides fail-over.
% \: D" _# _0 n* N( w- I* j• Place FSC cache servers close to users( Z% N& e- o' b3 H" I
o Greatly improves read performance (load time) over a WAN for groups consuming shared data.
0 r0 \$ _6 _+ w• Place Volume servers close to users5 r, Y$ e/ J7 B/ m
o Use Store & Forward or at least place remote volumes near remote users. (Backups of remote volumes are critical)
' ?+ O* }1 W8 q5 z: O- \3 po Greatly improve write performance (save time) over a WAN especially for CAD data.+ I6 F9 E+ S! R( Y" s
• Prepopulate FSC caches
! ^' Q1 K& C' x2 Q, }o Run a nightly script to prepopulate shared data across FSC caches.2 W; t3 n# m7 \3 A3 H/ f
Misc Teamcenter Changes
W- j9 g$ g7 G: D& }1 a' {4 `8 T• Disable logging and other debugging tools. Turn them on only when needed. Examples,' H9 G! Q" ~ h) ^6 ]# ]
o TC_SECURITY_LOGGING=OFF2 X* `5 K7 L: ~
o TC_APPLICATION_LOGGING=OFF) S8 f% ^# @9 A* X h. P( D
o TC_SLOW_SQL=-1- h) N2 i6 x" n- k
• Rich Client ‘Teamcenter.ini’ configuration:0 s# G. t4 C2 _* O0 M) q8 }
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).
/ I; b9 L- ^% J6 v+ n2 ?9 h• Enable FCC File Warming8 M2 K' K. [8 j" Y0 a: N- b1 f
o Improve startup time by having FCC and Tc files pre-loaded at OS login.
& q' R! f7 U9 `8 Y! B# uNetwork Performance
1 c( E. E/ w0 w! m' G6 B• Use a hardware-based WAN accelerator if using Teamcenter between multiple facilities over a WAN.0 |% a& E Y/ }7 X5 [
o If none then make best use of software-based Web server and FMS WAN acceleration settings. (i.e. http compression & FMS compression)1 }( F& y! I/ o, t: e9 o/ y4 f. E
• Optimize OS network settings- m+ p4 J. M1 T9 Q& h
o OOTB settings are insufficient8 \) Y8 g+ }* ~) Y8 w
o Applies to both servers and clients
2 ^0 r6 P4 P% r U) mo Examples, increasing # of tcp ports, disabling NAGLE algorithm, increasing buffer sizes, trunking multiple NICs, enabling Compound TCP, Large Windows Scaling$ f. O( V) q5 O+ v) m, Y) [$ k
Recommended Server Changes (Windows)" k! A+ K3 X1 r9 T6 | z
See Presentation.
+ K G3 @; E9 |) h( d" _) p8 d, aRecommended Client Changes (Windows)$ t7 E6 A, g7 \4 W6 \4 P
See Presentation., E* I5 v. H6 [+ T7 i7 n/ P
Performance Monitoring Tools6 L) g" M; o! |0 O
• Some useful performance monitoring tools:
0 L7 z# G: P9 \: V; \• Performance Monitor (comes with Windows)9 |, N$ a1 } o& X) b) u
• Used to monitor OS, Teamcenter, and SQL use of resources
5 o$ t$ u" f# l8 x% x) _, S$ \• Wireshark (freeware network packet sniffer); V) X, H2 @/ l4 o4 S1 Y: Y1 g) O! G2 W
• Used to help identify network TCP performance between computers.$ W) d* l' Z' x; I
• Available at http://www.wireshark.org/
9 j- x, \* P( q• Sysinternals Suite (free from Microsoft web site)
3 B7 V% r0 d2 t• http://technet.microsoft.com/en-us/sysinternals/bb842062# v" B5 k% R; t0 z
Reference Materials3 o: R) b2 C* j; i' D: Z7 J) G
• Available on GTAC Web Site @ http://support.industrysoftware.automation.siemens.com/docs/teamcenter/
" n6 e' h6 `+ V2 I+ do Teamcenter Deployment Guide. t& g5 R- t( @2 R% r2 \% _
o Teamcenter Network Performance Tuning- i6 Y% Y+ t- J Q
o JBoss 4.2.2 Installation & Tuning Guide- }" |9 q& f9 d
o Optimizing Teamcenter Client Performance
6 v$ E L) i, h& fo Teamcenter System Performance Analysis
4 r+ p) V7 N# e4 u' L# t• Oracle documentation & web sites! d7 B- `: I' B
• MS SQL Server documentation in addition to:
4 c, u: [2 O1 y6 `* E- Io Best Practices for Running Siemens Teamcenter on SQL Server
0 ]4 V- K$ k( i1 @* _, i1 b http://download.microsoft.com/download/7/3/6/7365D2BB-BB34-4D28-A128-F2C8FBA6E995/Siemens-Teamcenter-and-SQL-Server-Best-Practices.pdf
+ x4 G& S+ D" n& p* I) To Siemens Blog on Technet
7 z1 j' Y8 S: @* F1 P4 y http://blogs.technet.com/b/sql_server_isv/archive/tags/siemens/$ x9 V9 K; H: Q+ D: [. i
o Siemens-Teamcenter-SQL-Resource-Page& w+ H) S- \- a0 s1 ?2 d4 a4 W
http://blogs.technet.com/b/sql_server_isv/p/siemens-teamcenter-sql-server-resource-page.aspx& X7 j# J( V$ U% z [
• Past PLM World Conference Presentations available at www.plmworld.org,
`( X( j% p% y$ m# M5 wo Teamcenter 4-Tier Deployment – Best Practices
0 ?# s" I4 F$ x' |$ {o Teamcenter – Database Performance4 ?, u) C) ^- P7 H4 _8 P( A
o JBoss Optimization for Teamcenter
# b( I" d( }( v& H* ?$ p: Eo Optimizing Teamcenter Client Performance! E! s8 q- Y; f4 D
o Teamcenter Database Server Configuration & Tuning
( k4 D7 z& ?1 u6 ]) h: `$ ~% xContact Information
% `1 o7 z8 e. SLarry Carpenter P.E., PLM World Teamcenter SIG Chair, tcua@plmworld.org% O- q; e9 c4 E; f O5 \+ Y9 }/ K
Teamcenter UA SIG: http://www.plmworld.org/TC_UA
6 z/ K8 U% ?, G& qLinkedIn: http://www.linkedin.com/pub/larry-carpenter-pe/44/5b8/aaa
6 X1 z( h5 j. eAlternate Contact Info: ideas2nx@plmworld.org, larry.carpenter@siemens.com* O- b( {! w- t( R3 }3 s8 F7 v
& S6 ?* \' }0 e( p# C1 E |
|