|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
http://www-cad.fnal.gov/PLMWorld2008/Teamcenter%20Unified/The%2520Network%2520is%2520Slow!.pdf
5 ^4 p: _! K; c9 B) {3 Z' w/ Dhttp://www.plmworld.org/p/bl/et/blogid=43&blogaid=218 . z2 c- M: Y1 E0 z. p
https://support.industrysoftware.automation.siemens.com/docs/teamcenter/Network_Performance_Tuning_V6.6.pdf
( z7 T3 L2 r, V5 H$ ]5 v/ D- |" N4 G: V
Teamcenter is Slow! Teamcenter Performance Bottlenecks & Mitigation1 l2 I7 H. r7 I& u' Y1 [% t
3 b" r# h' |& d( ]& `' G; v. C
Larry Carpenter! w1 I- p6 O# K4 `
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
( R$ M9 S+ h2 Z5 g$ VFor those unwilling to join the TcUA SIG to view it, I wrote an abbreviated version here:; @7 C9 N- g O$ S) g* a
Why Performance Matters9 J: x' j) j1 r( w& I% }" G
• Productivity – doing more work with less! v1 m# q. |4 ~5 g: J
o Improve end user productivity
, ?( o6 Y' R/ a" m- p. l/ l* co Improves administrator productivity
5 y* G/ V; @1 O9 n/ `4 C fewer help desk calls responding to or fixing preventable problems; ` ?8 ] U. f0 A( H, i7 w
• Reliability
( B# p5 W. u# F% Y+ Q O @o A well tuned Teamcenter environment also improves system stability and uptime./ j' F+ x5 J( G9 w4 @) D( c( X
o Less opportunity for data corruption
% |! r) ^) s% J. |1 Do Fewer operational errors/problems
7 N; |1 q$ B3 `9 \/ t8 u1 h• Cost Savings+ T. L0 D+ X! [2 s
o Less waiting means less time wasted.
f. V% ^' M7 o, k- o) zQuick Case Study: Company ‘S’
+ v: K: R8 v: F# v4 }' K* ~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.
& G2 H* E' a" D- w0 N; Z; KSee my March 2012 article on PLM World’s website for details:
5 Q" F* w+ P+ n( T1 l% qTeamcenter Performance – Hard-Earned Lessons: http://www.plmworld.org/p/bl/ar/blogaid=152
' [9 d9 b# L) i: _7 }2 K; ?Common Performance Bottleneck Causes
. L0 F* n: D& s. W7 x8 t' g& _Using OOTB settings — OOTB settings are intended for development environments; not production environments.
4 H; L7 D) ?/ d0 x% w5 T) POverloaded servers — Putting too much on a single server.; Z0 q' ?8 x7 }8 F$ j! u; L
Operating system settings — Network settings most common (e.g. TCP parameters).2 @- p0 k) P' \! L( ^
Lack of performance monitoring & tuning — Performance doesn’t improve all by itself. It requires human intervention to determine root cause and address it.
{; s. ~/ x0 e4 GDatabases – The Most Likely Culprit
7 ^# s* Y) l+ \7 U ]& v Y• Database performance is highly sensitive to hardware, software, and DB configuration.
7 u( D2 d+ h9 ^5 m) d. L• DBAs at companies generally don’t do performance monitoring and tuning of your Teamcenter DB.2 X3 P2 @9 e2 b2 V- i7 x
• It’s typically the last place that Teamcenter administrators look for performance issues rather than the first.
6 W q7 G' s' w4 _Mitigating Database Server Bottlenecks
/ N2 v' A0 j* T3 M• Must use dedicated DB server
" F% n& d0 c, ` p) ^o Do not use your DB server for anything other than your Teamcenter production database. This includes not serving additional databases from the same server.
! B6 w1 D5 q- B$ \• Must have fast dedicated storage for DB files
: n7 T: A% f5 ?0 x1 }3 h8 @o Avoid using a NAS device; especially a shared NAS. Use DAS (Direct Attached Storage) instead.
4 ^4 t: @2 t! |2 l3 Z* P2 Q# Vo Use multiple fast disk spindles partitioned with proper RAID levels according to the DB vendor & SPLM recommendations.) @ h1 y$ ]3 F
o Split DB data, temp, and log files across those RAID partitions according to DB vendor & SPLM recommendations.
# E- L% ^" v( Y" C" qo Use disk controllers with a battery/flash backed cache.
" y7 ~; E; O2 x: L) Yo Use multiple disk controllers if possible.: ^2 t( E( ~% @* k
• Cram the RAM+ Y" S& F) K. A$ A8 X3 i6 a
o Ideally should be greater than the database size or in-memory footprint. Otherwise disk swapping/paging will occur.8 k2 I% [. a O) F; \+ ?" Y
• Use 64-bit OS & DB software
- y, a5 U7 A0 W* l! Z9 L( Ko 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.
1 T0 ]$ E7 c0 @- n$ w2 }& a$ o8 X& B• Use a good quality network adapter(s)( C/ a# I/ n. P, ?- P, v. c6 d J
o Often overlooked as potential source of bottleneck (e.g. packets/sec limitations). Consider multiple NICs “trunked” for better throughput.4 W" Y0 A4 K! |/ w+ h/ U
• DB maintenance tasks4 N/ t) \% I m: s5 U8 a8 Q9 y' F
o Update statistics and rebuild indexes regularly.
! R5 y+ f/ |; o# ]Common Teamcenter Server Bottleneck Causes* v6 S$ ]. k3 [
• Overloaded Tc Servers
/ _* L& O! x1 t2 T/ i6 @5 k, `; Y" t• Poor Web Tier Configuration
7 Z% u) U/ M0 [' f8 H- u% K# s% m• Poor FMS Configuration; V3 P& v2 g6 E( F- w* [
• Debugging Turned ON
) v& _ |' B8 J: C- i6 [" o) E• Rich Client using OOTB settings
$ q" C) m$ P0 g7 u‘Unload’ Overloaded Teamcenter Servers) P5 j" t. |. _9 _% u
• Put Dispatcher modules on separate computers away from other Tc Servers.) |2 y" M* m) ]9 E/ z! o
• Separate the Web & Enterprise tiers from the Tc Corporate and Volume servers.& V4 y) Y2 h5 Y6 V
• Use load balancing for Middle Tier & FMS:; Y0 z E$ N/ |- E
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.).
- X) J" h( k! E8 Uo Set up multiple FSC cache servers to take load off busy volume servers/storage.
6 O" b/ x4 [/ h5 y6 \Web Tier Configuration
! N6 L6 Z' e( ^) J+ ~/ r: B& p• Do not use port 80 or 8080
/ _- e* @: u' g) Do 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.: D o8 ~! U4 Y4 t M7 ^% x
• Enable http compression if not using WAN acceleration/ V' ^. [2 v& H, q4 u
o Must be done on both web server and on clients to take effect.
2 D" G" Z @' P. l8 u• Change/tune OOTB settings for Web Server/App
5 |9 q) \1 y1 [+ ~9 uo E.g. timeout values, max # of threads, Java memory, etc.! A+ P$ X2 x8 u1 O8 m4 V" A
o Read tuning guides specific to your chosen web server/app
y6 r/ {( H; h Y; k' P• Scale it up or sideways, g3 b& d; O* q- L$ D; h
o Add another web tier server, or increase # of work processes (e.g. Web Garden mode for IIS).5 I0 s& _* ~4 |% E, k* I
Common FMS Bottleneck Causes3 N7 |4 B4 |2 u$ F' w) ]
• Data improperly routed; k4 `) r! L5 C8 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.1 y% b6 E$ O3 @& X. x; e
• Using OOTB settings/ ^7 B: _! Z# g8 S% t
o For development purposes only, remember?, u* U* a+ g% @) _6 ^
• Missing client IP address subnets
5 b; t0 x( V$ U, r9 d" `• No load balancing
6 L6 H) N& @+ @5 n* K• Not using remote cache servers for WAN users# b6 Z: x% P8 P$ P! G- D& [6 E; q0 m% i
• Not using remote volume servers for WAN users
/ k7 g3 N2 }& F, y0 f1 a+ rFMS Configuration' Z, O7 n, V, y' g2 ^2 Q( i
• Ensure routing is correct: L( z( {4 c K0 T
o Between multiple FSC groups via entry/exit/link parameters9 Z) p5 V5 P( K1 v. U" n8 n
o Between clients and their assigned FSC servers by using complete and accurate ‘clientmap’ parameters for ALL clients.$ G: p! |, `3 u
o Use correct transport algorithms for LAN and WAN users.1 m* e; y9 n# n- `8 n, B" ]
• Tune FSC/FCC cache settings
( |! N6 a6 X3 `6 \& t3 r' q: m) jo Simply picking a total read/write cache size is not enough.
3 t7 y( J/ m: J0 xo 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 Calculator2 s2 \4 l% X8 c! r
• Ensure correct client maps
) u" n, b" u9 Go Determine ALL potential client IP address ranges and where they are located. Don’t forget to account for VPN IP addresses.% f9 L Z$ u2 H7 F* p
o Place client maps in the closest FSC group to their location.
' F7 a: _, {5 I% u7 y• Use multiple FSCs for load balancing/ L1 s3 N& \/ o9 A+ d* ~
o Use “front-end” FSC cache servers to reduce load on Volume servers. (Requires disabling of FSC direct routing)
4 W O& c+ S( [. c4 m' no Use redundant FSC cache servers to load balance each other. Also provides fail-over.
" I2 ]* \5 ^: z1 ~9 G9 Q• Place FSC cache servers close to users
; f5 k7 q+ b$ S3 C, B! ^9 {o Greatly improves read performance (load time) over a WAN for groups consuming shared data. K: |' d' p1 l' D
• Place Volume servers close to users' A. g/ X7 l( B: [! l
o Use Store & Forward or at least place remote volumes near remote users. (Backups of remote volumes are critical)6 @/ t& _4 d6 |/ c+ d2 d" Z
o Greatly improve write performance (save time) over a WAN especially for CAD data.% d+ J! H9 d1 S3 h& k2 e
• Prepopulate FSC caches& [) x5 v) \( \) e1 c- l M
o Run a nightly script to prepopulate shared data across FSC caches.
- P( w) L& |9 H$ @; Q; BMisc Teamcenter Changes/ J7 o; B1 d* q Y& A) E+ c* N' d
• Disable logging and other debugging tools. Turn them on only when needed. Examples,
* b1 Y: ^9 n0 P* S3 k7 `4 }1 Fo TC_SECURITY_LOGGING=OFF _9 q6 K* @+ o" [' }2 |
o TC_APPLICATION_LOGGING=OFF2 W% M* T5 _! I6 x9 l# O2 l% b
o TC_SLOW_SQL=-1" T2 r: [8 U1 R7 I' N2 f0 u* S0 ]1 d
• Rich Client ‘Teamcenter.ini’ configuration:8 t$ ~5 q" |0 c6 ?
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).1 b1 Q1 j( L! c2 x
• Enable FCC File Warming
" a+ p1 T! g) _, y6 ho Improve startup time by having FCC and Tc files pre-loaded at OS login.
% j9 u$ y0 R6 H" S. G" D3 Z' pNetwork Performance% F X' z: E u8 D9 K" z5 b g5 \! S
• Use a hardware-based WAN accelerator if using Teamcenter between multiple facilities over a WAN.( H, D. N O! ~+ d5 m' @+ j4 q
o If none then make best use of software-based Web server and FMS WAN acceleration settings. (i.e. http compression & FMS compression)( O: [5 D5 W- y8 m8 L& }% L* J
• Optimize OS network settings% [; B0 ?9 S7 ?" i, r# S1 C! h
o OOTB settings are insufficient8 ]1 ~! j1 B5 k1 a$ y m. l/ H: K
o Applies to both servers and clients, E( ~1 |' ^2 Y; p; H# H
o Examples, increasing # of tcp ports, disabling NAGLE algorithm, increasing buffer sizes, trunking multiple NICs, enabling Compound TCP, Large Windows Scaling' w: B4 ~% Z# X/ c- C* ]: R" F) ?0 n
Recommended Server Changes (Windows)
2 K2 \6 S+ T& X H. F: QSee Presentation.
/ E: M7 \6 L7 P8 n% \( t4 Y: ARecommended Client Changes (Windows)- C& ?& ~ H% G; d% h- B$ {6 V8 y. H
See Presentation.. ^* ~( x. k) s0 |* c, O: x
Performance Monitoring Tools1 X1 F3 H1 c( O. M- \
• Some useful performance monitoring tools:
) v5 l2 K$ t+ a+ o) k! g• Performance Monitor (comes with Windows). j0 A3 J+ w* K4 H8 F
• Used to monitor OS, Teamcenter, and SQL use of resources. o3 j: |! n8 H; a2 ~
• Wireshark (freeware network packet sniffer)
9 P% t* L! e* q0 }, O" u ?$ F• Used to help identify network TCP performance between computers.' D9 A. u" Q! _+ ^ ?0 I2 j- ~
• Available at http://www.wireshark.org/
( G. H: J; y, h2 c* e' c8 L/ |1 z• Sysinternals Suite (free from Microsoft web site)
) e" I* d5 Q7 d: {$ |3 c• http://technet.microsoft.com/en-us/sysinternals/bb842062: _, x7 @, x2 ?8 @3 l" Q
Reference Materials
% f* Z1 Q% P2 E• Available on GTAC Web Site @ http://support.industrysoftware.automation.siemens.com/docs/teamcenter/; v4 q% G& Z! z
o Teamcenter Deployment Guide/ b: U+ }4 J) \0 V- M7 G/ u
o Teamcenter Network Performance Tuning
4 J6 U V( U2 E1 So JBoss 4.2.2 Installation & Tuning Guide
) A3 f3 ~+ o; ~7 t) Z$ h3 _o Optimizing Teamcenter Client Performance7 u7 }+ D$ z% Z9 K! Z
o Teamcenter System Performance Analysis
/ X* Y3 t. ^: m1 e( G9 }• Oracle documentation & web sites) i" [: ^& V2 r0 g$ g4 }
• MS SQL Server documentation in addition to:0 s" A" Q [) V) p, h3 m% m
o Best Practices for Running Siemens Teamcenter on SQL Server5 Q' l% C: r: Q) d2 j
http://download.microsoft.com/download/7/3/6/7365D2BB-BB34-4D28-A128-F2C8FBA6E995/Siemens-Teamcenter-and-SQL-Server-Best-Practices.pdf
% E1 d; U: X5 w6 Go Siemens Blog on Technet. s7 z3 S6 u' _5 ?
http://blogs.technet.com/b/sql_server_isv/archive/tags/siemens/& k3 H2 Q1 @$ M& n
o Siemens-Teamcenter-SQL-Resource-Page
5 n' A$ b& X$ x' i3 r http://blogs.technet.com/b/sql_server_isv/p/siemens-teamcenter-sql-server-resource-page.aspx
# U7 a: x1 z# K- L/ w• Past PLM World Conference Presentations available at www.plmworld.org,' c4 {& N* `4 z5 G
o Teamcenter 4-Tier Deployment – Best Practices# J* L4 ~) e( }2 H# W1 m7 O2 |2 W
o Teamcenter – Database Performance# G7 ~# h# X0 ]: A" v' l, e# x3 `
o JBoss Optimization for Teamcenter$ h. j$ w# a8 V
o Optimizing Teamcenter Client Performance
" }& J5 r+ Z& E: ?o Teamcenter Database Server Configuration & Tuning. T$ Y: o/ s0 F/ l! X/ S; y
Contact Information
m" E2 p1 `, Q$ ILarry Carpenter P.E., PLM World Teamcenter SIG Chair, tcua@plmworld.org
{3 B9 R* H J' FTeamcenter UA SIG: http://www.plmworld.org/TC_UA3 n% M! Z% n+ I- W7 |3 t$ p' g
LinkedIn: http://www.linkedin.com/pub/larry-carpenter-pe/44/5b8/aaa
( D3 U: C5 \; t+ I( ]) a+ qAlternate Contact Info: ideas2nx@plmworld.org, larry.carpenter@siemens.com
g7 V; O$ J6 z+ H& X+ Z" G
& P) F; E: _; a8 k9 [ |
|