Re: Glassfish using too much memory
2008-08-19 13:46:01
Hi Felipe,

That is not unusual usage. Your total memory usage is basically going
to equal JVM/Native/thread space + Java Heap + Java Perm Gen.
Calculating the first one is difficult, but it is generally going to be
at least a couple hundred MB. The second is determined by -Xms (start
value) and -Xmx (max value). The final value is determined by
-XX:PermSize (start) and -XX:MaxPermSize (max). You want to take
individual care not to run out of native space, heap space (in any of
the generations), or perm space, all while staying under process limits
(~4GB for 32 bit Solaris processes) and definitely not swapping (KILLS
performance).

Permanent Generation holds all of your classes and methods. In a dev
environment, this could potentially get very large. If you are getting
PermGen errors, try increasing your MaxPermSize (try 128m).

More info can be found here:

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
http://docs.sun.com/app/docs/doc/819-3681/abeia?a=view

Regards,
Chris




Felipe Jaekel said the following on 08/19/08 15:00:
> I have Glassfish V2 UR1 installed in a Ubuntu 8.04 server. It consumes
> about 700MB of memory. Is it normal?
>
> In my developing environment memory usage increases so much that I get
> PermGen space error.
>
> Thanks for any help,
> Felipe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Re: Gray Screen in Ubuntu
2008-08-19 13:46:01
Thanks, it was the graphics card. It is running great now!

WS-Eventing primer
2008-08-19 13:46:01
I am having to quickly build a java client to connect to a .net Web Service. I was able to use WS-Import to generate code to connect to the service and I am sending requests and getting responses fine, but I can't seem to find any examples or documentation on how to build a WS-Eventing Client... can anybody point me to some documenation or examples on how to do this?

JAXB 1.x stable release download
2008-08-19 13:46:01
Hi,

Where can I find the downloads for JAXB 1.x stable release ? Any URL please ?

I am trying to build a prototype to persist XML using Hibernate (Hyperjaxb2) which uses jaxb 1.0.6 .
I ran into an issue while UnMarshalling. I think I need to play around with JAXB 1.0.6 a little more..

Using HyperJaxb 3 + JAXB 2.x is another option. However, I have a restriction to use Java 1.4

Thanks in advance

Re: unmarshal to java object, but then marshal to an XML based on diff sche
2008-08-19 13:46:01
Sorry to be a kill-joy, but I'm pretty sure that what you're suggesting is impossible.

When you create a JAXBContext, you have to give it class names for the classes which you want to marshall/unmarshall. When you do this. it reads the annotations and solidifies its internal definition of your data. So when you unmarshall xml, you're only going to get objects of the types that you initialized the JAXBContext with.

You could potentially do a piece-wise copy of each piece of data from one class instance with a set of mapping annotations for the first data definition to a class instance with mapping annotations following the second data definition. This seems like overkill on resources, though.

From what you describe, I would suggest XSLT. If you need Java objects in one data format, but still need to validate against the other data format, you can marshall the objects, run the resulting xml stream through a transform, and then validate the result.

Glassfish using too much memory
2008-08-19 13:16:10
I have Glassfish V2 UR1 installed in a Ubuntu 8.04 server. It consumes about
700MB of memory. Is it normal?

In my developing environment memory usage increases so much that I get
PermGen space error.

Thanks for any help,
Felipe
[att1.html]

Re: Problem with off-the-shelf video player in 0.4RC2demo-wfs'
lecture hall

2008-08-19 13:16:10

On Tue, 2008-08-19 at 03:46 -0700, wonderland@javadesktop.org wrote:
> I am using Java Web Start.
>
> In fact I discovered a legacy (?) JMF set of files on my laptop
> including a properties one, that I immediately killed .. video should
> work now.
>
> Thanks,
> -michel

Did that fix it? Inquiring minds want to know. :) Ric

4 Sr.Java Engineer Contract openings/ JSF/ Hibernate - Minnesota
2008-08-19 13:16:10
Local candidates only please in the Twin Cities area
.
3mth+ contract on a 3 year project - 4 openings - start ASAP - rate 75/hr or more as 1099 hourly or C2C if representing yourself.

Description: Title: Senior Java Software Engineer

This key role will have design/development responsibilities on a large Java/J2EE/SOA based program to re-engineer several legacy billing systems into a new streamlined solution.
Primary responsibilities include: coding/development, mentoring developers, creating design patterns, and creating coding best practices.

Minimum Qualifications:
5+ years of Java/J2EE experience
2+ years of JUnit and continuous integration testing experience (Cruise Control preferred)
2+ years of Hibernate/EJB3 experience
1+ years of JSF experience
1+ years of SOA experience
1+ years experience with Agile development methodologies (SCRUM preferred)
1+ years experience with RUP

Preferred Qualifications
2+ years of Websphere or JBOSS experience
2+ years of Oracle experience
2+ years experience with reporting tools (Cognos preferred)

Re: Glassfish cannot be started(CLI156 Could not start the domain domain1)
2008-08-19 13:16:10
Hi,

it seems CLI156 is just a general error when the domain cannot be started.

The output states that the host "bolpiilinux2" is not known. Can you ping the host? I assume that it is your local machine. Maybe you can try to put the name into /etc/hosts file.

Cheers
Chris

Re: Gray Screen in Ubuntu
2008-08-19 13:16:10

On Tue, 2008-08-19 at 11:51 -0700, wonderland@javadesktop.org wrote:
> Hello,
>
> I am having problems getting Wonderland running on Ubuntu. When I log
> in the world is entirely gray. I am sure that the server is loading
> the world properly because I logged into the world using another
> client running on OSX. However, from the OSX client I can't see the
> avatar on the Ubuntu machine, but I can chat with them etc.
>
> I saw another thread where this problem was raised and I tried their
> solution but this didn't solve the problem.
>
> Has anyone else encountered this problem or aware of a likely
> solution?
>
> Thanks in advance,

See previous post: Re: Error in glassfish server log.

The issue is that Wonderland can't initialize the 3D gaphics:

Caused by: java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:982)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1025)
at org.jdesktop.lg3d.wonderland.scenemanager.hud.HUDCanvas3D.<init>(HUDCanvas3D.java:133)


The most likely cause for this is a problem with your graphics driver.
It looks like you client is on Linux, so a good test is to run the command:

# glxinfo | grep direct
direct rendering: No

If you see direct rendering as "no", you need to verify your drivers are correct.
This will vary by distro, but on Ubuntu, you can usually enable the restricted
driver for your graphics card.

I'm assuming here that you have an accelerated graphics card
(nVidia or ATI) in your system.

[Message sent by forum member 'kaplanj' (kaplanj)]

Otherwise check your setup again for correct IP addresses, etc. But, I'd
bet dollars to donuts it's your graphic card not set to 24bits and/or 3D
not enabled. What kind of video card is it?? Ric