其他組態 > 改善 ThingView WebGL 的效能
  
改善 ThingView WebGL 的效能
欲改善 ThingView WebGL 小器具的效能,建議您使用 WebAssembly MIME 類型最佳化小器具。
透過編輯 web.xmlserver.xml 檔案,將 Apache Tomcat 伺服器配置為支援 WebAssembly MIME 類型的檔案:
1. 首先,停止 Apache Tomcat 和 ThingWorx Integration Runtime。如果是單一登入,請繼續步驟 2。對於 Windchill 驗證,請跳至步驟 3。
2. 對於使用單一登入的系統 - 編輯 web.xml 檔案:
a. 使用文字編輯器開啟 <Tomcat 安裝位置>\webapps\Thingworx\WEB-INF\web.xml
b. 往下捲動到檔案的結尾,然後新增下列幾行:
<mime-mapping>
<extension>wasm</extension>
<mime-type>application/wasm</mime-type>
</mime-mapping>
3. 對於使用 Windchill 驗證的系統,web.xml 依預設已擁有所需的 MIME 設定。
* 
如果您使用的是多個 Windchill 連線,請從下列資料夾複製 web.xml 檔案:<Navigate 安裝位置>\MultiWindchillConfiguration\idp\
或者,如果您已單獨下載 ptc-windchill-extension,則也可以從 ptc-windchill-extension\idp\twx-8.3.x\multi 資料夾複製 web.xml 檔案。
4. 欲新增任何驗證類型的壓縮設定,請使用文字編輯器開啟 <Tomcat 安裝位置>\conf\server.xml
5. 在連接器埠部分中新增下列壓縮屬性:
compression="on"
compressionMinSize="1024"
compressableMimeType="application/wasm,text/html,text/xml,text/plain,text/css,text/javascript,application/javascript"/>
6. 啟動 Apache Tomcat 與 ThingWorx Integration Runtime。