Forums Register Login

OutOfMemoryError with J2EE and JMS

+Pie Number of slices to send: Send
I have been trying to set up a JMS running on two machines, with the J2EE server on one machine, and a client on each. JMS works fine on the machine which also hosts the server, but when I connect a client machine and try to make a connection to the Context.lookup() method:
topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
I run out of memory with the following error:
Exception occurred during event dispatching:
java.lang.OutOfMemoryError
<<no stack trace available>>
Process exit...
It appears that, in order to issue objects across the network, the j2ee system needs to load in a whole load of code and other
objects to achieve this. This takes up too much memory on my system. I have tried all the obvious things, like making sure the Java virtual machine has a minimum amount of memory and that other applications are shut down. This hasn't worked.
Any suggestions? Any workarounds? I am running on PC's (Win2k, NT) with up to 256Mb RAM. If I need more memory, how much would suffice?
Thanks,
John
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 772 times.
Similar Threads
J2EE & client applications. HELP PLEASE
confusion with output of java -version command
Problem running weblogic 8.1 on Vmware win2000
How can I get clients to recognise my J2EE server?
Connecting to J2EE Server installed in Solaris
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:07:24.