kus's blog

Eclipse "java.lang.OutOfMemoryError" on Ubuntu

There are two common reasons for Eclipse to throw "java.lang.OutOfMemoryError"

  1. Heap space is to small
  2. Permgen size (permanent generation space) is to small

Heap space is where your java objects are created, maintained, and destroyed. Without going into too many details about how exactly heap space regulates java objects. Here is a quick fix for the "OutOfMemoryError" error in Ubuntu.

  • Go to the eclipse.ini file:
    • cd usr/lib/eclipse
    • sudo vim eclipse.ini
  • The Original heap space has 40MB and a maximum of 256MB. Increase Xms and Xmx based on your need
  • save and quit from eclipse.ini

Installing Trac on Ubuntu 8.04 with an existing SVN -Part 3

This blog entry gives step by step instruction to the installation of Trac on Ubuntu 8.04 with an existing SVN repository part 3

Installing Trac on Ubuntu 8.04 with an existing SVN -Part 2

This blog entry gives step by step instruction to the installation of Trac on Ubuntu 8.04 with an existing SVN repository part 2

Installing Trac on Ubuntu 8.04 with an existing SVN -Part 1

This blog entry gives step by step instruction to the installation of Trac on Ubuntu 8.04 with an existing SVN repository.

EJB deployment in JBoss (in Chinese)

最近在用EJB3 写一个简单的通讯录,其中EJB3 是由许多部分组成。一个看似简单的通讯录,是通过好多道程序才来实现的。以下是EJB deployment 的解析。 我有付上jboss reference 相关内容:http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch5.chapter.html 有兴趣的人可以作梗深入的探索。

1。当EJB.jar 要开始运行时, jboss deployment 开始扫描,根据jboss_service.xml, jboss deployment 找到运行路径(deploy directory), 之后找出正确的deployer (EJB deployer).
2。然后这个EJB deployer 再找相关的descriptors, annotations 来调试其 EJB container.
3。在这个 EJB container 里, 有 interface, interceptors, Bean (interface 的逻辑, 真正在算的部分), server invoker。 EJB container 会分化出一个 client container.
4。Client container 有interface, interceptors, invoker, 但是没有 Bean. 当client container 被分化后,它马上和 naming service 注册。
Naming service 其实是一个hash table, key 是 interface 的名字, 值是整个client container 的复制。

Syndicate content