当社のシステム構成は次のとおりです。

当社のシステム構成は次のとおりです。

System X3750 M4 IBM Server に Centos 6.4 をインストールしました。しかし、サーバーのパフォーマンスは少なくとも通常のデスクトップ構成と同じではありません。サーバーのパフォーマンス チューニングは行っていません。

インストールが完了したらすぐに、システムのシステム モニターをチェックしたところ、合計 32 個の CPU が表示され、負荷がかかっているのは 3 個の CPU のみで、その他はアイドル モードになっています。

当社のシステム構成は次のとおりです。

IBM System x3750 M4 サーバー

300GB×4 HDD

32GBのRAM

2 クアッドコア * 4 プロセッサ数 = 32 CPU

インテル Xeon プロセッサー

パーティション:

RAID 1

1 つの RAID に 2 つの HDD。

手動パーティション

/dev/sda6              58G  629M   55G   2% /
tmpfs                  16G  664K   16G   1% /dev/shm
/dev/sda2             485M   37M  424M   8% /boot
/dev/sda1             200M  260K  200M   1% /boot/efi
/dev/sda5              68G  878M   64G   2% /home
/dev/sda7              29G  172M   28G   1% /opt
/dev/sda8              29G  188M   28G   1% /tmp
/dev/sda9              29G  3.9G   24G  15% /usr
/dev/sdb1             274G  773M  260G   1% /var

Centos 6.4 サーバー

Javaバージョン「1.7.0_25」

データベース: mysql Ver 14.14 Distrib 5.1.66、redhat-linux-gnu (x86_64) 用、readline 5.1 使用

JBOSS 6 アプリケーションサーバー

アパッチトムキャット7.14

Centos 6.4 で良好なパフォーマンスを実現するために、どのような基本設定を行う必要がありますか?

私たちはこの分野、つまりサーバー設定などに関しては初心者です。どうかご協力をお願いします。

前もって感謝します。

ネヴィン・アレックス。

答え1

ターミナルウィンドウを開いて、次のコマンドを実行してみてください: top -b -n1 > /root/topcmd。これにより、top の出力が /root/topcmd ファイルに保存されます。テキスト エディターで開いて、その内容をここにコピーし、何が起こっているかを確認します。おそらく、何らかのプログラムまたはサービスが誤動作している可能性があります。

答え2

ありがとう、ダニエル J。出力は次のとおりです: 最大 300000 行

トップ - 21:21:50 起動 2:06、ユーザー 5 人、負荷平均: 0.02、0.07、0.10 タスク: 合計 828、実行中 1、スリープ中 827、停止中 0、ゾンビ 0 CPU: 0.3%us、0.1%sy、0.0%ni、99.6%id、0.1%wa、0.0%hi、0.0%si、0.0%st メモリ: 合計 32688948k、使用中 10546356k、空き 22142592k、バッファー 90116k スワップ: 合計 65535992k、使用中 0k、空き 65535992k、キャッシュ済み 1759772k

PID ユーザー PR NI VIRT RES SHR S %CPU %MEM TIME+ コマンド
3547 root 20 0 178m 61m 11m S 3.4 0.2 4:56.71 Xorg
16003 root 20 0 15548 1800 888 R 3.4 0.0 0:00.09 top
37 root 20 0 0 0 0 S 1.7 0.0 0:00.05 ksoftirqd/8
1 root 20 0 19228 1512 1220 S 0.0 0.0 0:03.17 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.45 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/3
18 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/3
19 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/4
20 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/4
21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/4
22 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/4
23 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/5
24 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/5
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/5
26 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/5
27 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/6
28 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/6
29 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/6
30 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/6
31 root RT 0 0 0 0 S 0.0 0.0 0:00.00 移行/7
32 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/7
33 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/7
34 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/7
35 ルート RT 0 0 0 0 S 0.0 0.0 0:00.02 migration/8
36 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/8
38 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/8
39 ルート RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/9
40ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/9
41 ルート 20 0 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/9
42 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/9
43 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/10
44 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/10
45 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/10
46 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/10
47 root RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/11
48 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/11
49 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/11
50 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/11
51 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/12
52 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/12
53 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/12
54 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/12
55 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/13
56 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/13
57 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/13
58 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/13
59 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/14
60 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/14
61 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/14
62 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/14
63 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/15
64 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/15
65 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/15
66 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/15
67 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/16
68 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/16
69 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/16
70 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/16
71 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/17
72 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/17
73 root 20 0 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/17
74 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/17
75 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/18
76 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/18
77 ルート 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/18
78 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/18
79 ルート RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/19
80 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/19
81 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/19
82 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/19
83 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/20
84 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/20
85 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/20
86 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/20
87 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/21
88 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/21
89 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/21
90 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/21
91 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/22
92 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/22
93 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/22
94 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/22
95 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/23
96 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/23
97 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/23
98 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/23
99 root RT 0 0 0 0 S 0.0 0.0 0:00.08 migration/24
100 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/24
101 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/24
102 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/24
103 ルート RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/25
104 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/25
105 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/25
106 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/25
107 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/26
108 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/26
109 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/26
110 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/26
111 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/27
112 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/27
113 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/27
114 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/27
115 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/28
116 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/28
117 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/28
118 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/28
119 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/29
120 root RT 0 0 0 0 S 0.0 0.0 0:00.00移行/29
121 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/29
122 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 ウォッチドッグ/29
123 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 移行/30
124 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 移行/30
125 ルート 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/30
126 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 ウォッチドッグ/30
127 ルート RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/31
128 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/31
129 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/31
130 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/31
131 root 20 0 0 0 0 S 0.0 0.0 0:01.44 events/0
132 root 20 0 0 0 0 S 0.0 0.0 0:00.18 events/1
133 root 20 0 0 0 0 S 0.0 0.0 0:00.17 events/2
134 root 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/3
135 ルート 20 0 0 0 0 S 0.0 0.0 0:00.20 イベント/4
136 ルート 20 0 0 0 0 S 0.0 0.0 0:00.22 イベント/5
137 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/6
138 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/7
139 ルート 20 0 0 0 0 S 0.0 0.0 0:00.29 イベント/8
140 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/9
141 ルート 20 0 0 0 0 S 0.0 0.0 0:00.17 イベント/10
142 ルート 20 0 0 0 0 S 0.0 0.0 0:00.16 イベント/11
143 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/12
144 ルート 20 0 0 0 0 S 0.0 0.0 0:00.20 イベント/13
145 ルート 20 0 0 0 0 S 0.0 0.0 0:00.21 イベント/14
146 ルート 20 0 0 0 0 S 0.0 0.0 0:00.21 イベント/15
147 ルート 20 0 0 0 0 S 0.0 0.0 0:00.21 イベント/16
148 ルート 20 0 0 0 0 S 0.0 0.0 0:00.17 イベント/17
149 ルート 20 0 0 0 0 S 0.0 0.0 0:00.16 イベント/18
150 ルート 20 0 0 0 0 S 0.0 0.0 0:00.17 イベント/19
151 ルート 20 0 0 0 0 S 0.0 0.0 0:00.16 イベント/20
152 ルート 20 0 0 0 0 S 0.0 0.0 0:00.22 イベント/21
153 ルート 20 0 0 0 0 S 0.0 0.0 0:00.20 イベント/22
154 ルート 20 0 0 0 0 S 0.0 0.0 0:00.25 イベント/23
155 ルート 20 0 0 0 0 S 0.0 0.0 0:00.20 イベント/24
156 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18 イベント/25
157 ルート 20 0 0 0 0 S 0.0 0.0 0:00.17 イベント/26
158 ルート 20 0 0 0 0 S 0.0 0.0 0:00.16 イベント/27
159 ルート 20 0 0 0 0 S 0.0 0.0 0:00.19 イベント/28
160 ルート 20 0 0 0 0 S 0.0 0.0 0:00.18

関連情報