Applet slowed by resource and bundle loading, how 2 improve?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jim McGlaughlin
Posts: 26
Joined: Tue Jul 25, 2006 9:16 pm
Location: Newburyport, MA USA
Contact:

Applet slowed by resource and bundle loading, how 2 improve?

Post by Jim McGlaughlin » Wed Dec 08, 2010 5:24 pm

The first time my applet uses a jfreechart, the resources and bundles take a long time to load, 15 plus seconds.

I thought it was because I disabled caching in IE and java during development but when both are enabled the problem still exists.

I am looking for a way to improve this situation, perhaps by preloading them when the applet starts.

Here is the output from the java console. In this case it took 19 seconds to load these resources. After doing tis once, it does not repeat unless the user navigates away from the applet and comes back.

Code: Select all

10:59:02  NetworkThresholdsGraphsPanel: Time to get 192.168.179.1 descid 9 bwmax graph 1125
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en_US.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en_US.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/plot/LocalizationBundle_en_US.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en_US.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en_US.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/resources/JFreeChartResources_en_US.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en_US.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en_US.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/resources/JCommonResources_en_US.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en_US.class with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en_US.properties with proxy=DIRECT
network: Connecting http://localhost:8080/ivDashboard/org/jfree/chart/LocalizationBundle_en_US.properties with cookie "JSESSIONID=2C1459865B1C88034DDAF6010DB56094"
10:59:21  Network3DStatisticsGraphPanel: Range is zoomable
10:59:21  Network3DStatisticsGraphPanel: Domain is not zoomable

Locked