<<上篇 | 首页 | 下篇>>

Tapestry 5 自动重载page模板和page类问题

Tapestry5确实可以自动reload page tml模板和page classes,如果你的web.xml的定义是:

<!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
    <display-name>My Tapestry Application</display-name>
    <context-param>
        <param-name>tapestry.app-package</param-name>
        <param-value>org.example.myapp</param-value>
    </context-param>
    <filter>
        <filter-name>app</filter-name>
        <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>app</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>

那么,包org.example.myapp以及子包下面的tml和page class可以自动reload,也就是说,只有在org.example.myapp.pages下面的page classes和在org.example.myapp.components下面的component classes才会自动reload

阅读全文……

标签 : ,

JVM的内存限制(JVM maximum heap size)

On 32bit platform, maximum virtual space is 4G. (2^32)
And on 32bit Windows, 2G space is reserved for OS kernel and another 2G space is reserved for a process.
So the maximum memory space that jvm can use is 2G.

Excluding some native os specific memory, generally the maximum java heap available for "one" java process is around 1500M.
In your case this limit seems to lie between 1.1G ~ 1.5G.

阅读全文……

标签 : ,