Why Java is so extremely low?

Hi, I got problems with czateria.pl, czat.onet.pl, czat.wp.pl chatrooms.
The problem is that my computer starts to be very slow, and tries to display elements of the chatroom, and even if I get there after 10 minutes, I cannot write anything.
I tried Opera, IE, FF and many others under XP.
How to fix it?

>
1. Figure out the problemI don't know why I have it.
If you ever learn to program in the java language and you have a question about that then you should stop by this site to ask questions.I tried asking on a few forums and no one knows the answer. I think it's ok to ask on these forums. Do you know how to fix this problem?

Similar Messages

  • Extremely low message throughput with MQ 3.6

    We performed some load tests to determine maximum throughput of the Sun JMS framework when used in conditions similar to our application.
    The achieved throughput is extremely low: around 10 messages / second while we expected around 100. Could you please verify what may be the reason?
    We encountered one particular problem: the time of closing JMS producers increases much during the test. Message throughput decreases proportionally. Time periods of other phases of the JMS API usage remain constant. What can be the reason?
    detailed information:
    Our configuration used:
    server machine:
    cpu: Intel Celeron 2.8 Ghz
    ram: 1GB
    os: CentOS release 4.4 (Final), 2.6.9-42.0.3.EL
    application server: Sun Java System Application Server Enterprise Edition 8.1 2005Q2 UR2
    java version: 1.5.0_04
    we use default imqbroker configuration
    client machine:
    Intel Celeron 2Ghz
    ram: 512MB
    os: Fedora Core release 3, 2.6.12-1.1381_FC3
    java version: 1.4.02
    Test description (find attached test unit sources presenting our way of using JMS API):
    Load test is performed by running a number of concurrent test units against the JMS broker. Number of units is constant in time. Additionally, every unit test at the end of its life cycle launches another unit to keep long test time perspective.
    Each test unit is self-contained. It contains of a producer and a consumer (MessageListener). It sends messages to itself . Also each message unit sleeps for some time to simulate message processing.
    Messages are non-persistent, no durable subscriptions are used. All units are using one shared Queue for whole messaging. Message selectors are utilized to guarantee that messages are delivered to intended receiver.
    By this test we wanted to determine a maximum value of message throughput for which all messages are delivered successfully and in some reasonable time (say less than 1 minute).
    Some variations of test units are possible, e.g. JMS connections and/or sessions can be open/closed for every sent message or shared among multiple producers. But (contrary to our expectations) we encountered no visible differences in message throughput and message delivery time.
    Code of test units:
    Sender.java
    package pl.ericpol.jmstest;
    import javax.jms.Connection;
    import javax.jms.JMSException;
    import javax.jms.MessageProducer;
    import javax.jms.Session;
    public class Sender{
         private UnitTest unitTest = null;
         private Connection connection = null;
         private Session session = null;
         private MessageProducer producer = null;
         private String selector = null;
         public Sender(Connection con, Session session, MessageProducer producer, String selector, UnitTest unitTest){
         public void send() {
              try {
                   boolean closeSession = false;
                   boolean closeProducer = false;
                   if(this.session == null){
                        this.session = this.connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                        closeSession = true;
                   if(this.producer == null){
                        this.producer = this.unitTest.createProducer(this.session);
                        closeProducer = true;
                   this.producer.send(this.unitTest.createMessage(this.session, this.selector));
                   if(closeProducer){
                        this.producer.close();
                        this.producer = null;
                   if(closeSession){
                        this.session.close();
                        this.session = null;
              } catch (JMSException e) {
                   e.printStackTrace();
    Receiver.java
    package pl.ericpol.jmstest;
    import javax.jms.Connection;
    import javax.jms.ConnectionFactory;
    import javax.jms.Destination;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageConsumer;
    import javax.jms.MessageListener;
    import javax.jms.MessageProducer;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    public class Receiver extends Thread implements MessageListener{
         private Connection connection = null;
         private Session session = null;
         private Destination destination = null;
         private MessageConsumer consumer = null;
         private Connection sendConnection = null;
         private Session sendSession = null;
         private MessageProducer producer = null;
         private String qname = null;
         private String selector = null;
         private int messagesToReceive = -1;
         private int delay = -1;
         private UnitTest unitTest = null;
         private boolean active = true;
         private long[][] localStats = null;
         private Boolean monitor = new Boolean(true);
         public Receiver(ConnectionFactory cf, Connection sendConnection, Session sendSession, MessageProducer producer,
                   String code, UnitTest unit){
              try {
                   this.connection = cf.createConnection();
                   this.session = this.connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   this.destination = this.session.createQueue(this.qname);
                   this.consumer = this.session.createConsumer(this.destination, UnitTest.KEY + " = '" + code + "'");
                   this.consumer.setMessageListener(this);
                   this.connection.start();
                   this.producer = producer;
                   this.sendSession = sendSession;
                   this.sendConnection = sendConnection;
              } catch (JMSException e) {
                   e.printStackTrace();
              } catch (NumberFormatException e1) {
                   e1.printStackTrace();
         public void run() {
              if(this.consumer == null){
              } else {
                   this.sleep(0);
                   this.close();
                   TestManager.getInstance().unitTestFinished();
         public synchronized void onMessage(Message arg0) {
              Message message = arg0;
              if(this.active){
                   if(message == null){
                   } else {
                        if(message instanceof TextMessage){
                                  this.registerDeliveryTime(this.localStats.length - this.messagesToReceive, message);
                                  this.sleep(this.delay);
                                  synchronized(this.monitor){
                                       if(--this.messagesToReceive == 0){
                                            this.unitTest.messagesReceived();
                                       } else {
                                            if(this.active){
                                                 this.send();     
                        } else {
              } else {
              if(! this.active){
                   this.notify();
         public synchronized void deactivate(){
         public int getMessagesToReceive(){
              return this.messagesToReceive;
         private void send(){
              try {
                   boolean closeSession = false;
                   boolean closeProducer = false;
                   if(this.sendSession == null){
                        this.sendSession = this.sendConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                        closeSession = true;
                   if(this.producer == null){
                        this.producer = this.unitTest.createProducer(this.sendSession);
                        closeProducer = true;
                   this.producer.send(this.unitTest.createMessage(this.sendSession, this.selector));
                   if(closeProducer){
                        this.producer.close();
                        this.producer = null;
                   if(closeSession){
                        this.sendSession.close();
                        this.sendSession = null;
              } catch (JMSException e) {
                   e.printStackTrace();
         private synchronized void sleep(int delay){
         private void registerDeliveryTime(int index, Message message){
         private synchronized void close(){
              try {
                   if(this.producer != null){
                        this.producer.close();
                   if(this.sendSession != null){
                        this.sendSession.close();
                        this.sendSession = null;
                   if(this.sendConnection != null){
                        this.sendConnection.close();
                        this.sendConnection = null;
                   if(this.consumer != null){
                        this.consumer.close();
                        this.consumer = null;
                   if(this.session != null){
                        this.session.close();
                        this.session = null;
                   if(this.connection != null){
                        this.connection.close();
                        this.connection = null;
              } catch (JMSException e) {
                   e.printStackTrace();
    TestUnit.java
    package pl.ericpol.jmstest;
    import java.util.HashMap;
    import java.util.Iterator;
    import javax.jms.Connection;
    import javax.jms.DeliveryMode;
    import javax.jms.JMSException;
    import javax.jms.MessageProducer;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import com.sun.messaging.ConnectionFactory;
    import com.sun.messaging.QueueConnectionFactory;
    public class UnitTest extends Thread{
         public static final String KEY = "Type";
         private ConnectionFactory cf = null;
         private Connection sendConnection = null;
         private Session sendSession = null;
         private MessageProducer producer = null;
         private int delay = -1;
         private int messagesPerCall = -1;
         private int loop = -1;
         private int timeOut = -1;
         private int maxLoops = -1;
         private boolean waitingFlag = false;
         private boolean messagesReceived = false;
         public UnitTest(int loop){
              try {               
                   this.cf = new QueueConnectionFactory();
                   this.applyProps(this.cf, Properties.getInstance().getSunProps());
                   this.sendConnection = this.cf.createConnection();
                   if(sharedProducer){
                        this.sendSession = this.sendConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                        this.producer = this.createProducer(this.sendSession);
                   } else if(sharedSession){
                        this.sendSession = this.sendConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   this.sendConnection.start();
              } catch (NumberFormatException e){
                   MyLogger.logger.error("number format exception!!");
              } catch (JMSException e) {
                   e.printStackTrace();
         public void run(){
              String selector = String.valueOf(Randomizer.getRandInt(Integer.MAX_VALUE));
              Receiver receiver = new Receiver(this.cf, this.sendConnection, this.sendSession, this.producer, selector, this);
              receiver.start();
              long startTime = System.currentTimeMillis();
              this.send(selector);
              synchronized (this) {
                   if(! this.messagesReceived){
                        this.sleep(this.timeOut);     
              long finishTime = System.currentTimeMillis();
              receiver.deactivate();
              if(++this.loop < this.maxLoops && TestManager.getInstance().getStatus()){
                   UnitTest newTest = new UnitTest(this.loop);
                   newTest.start();
              } else {
                   TestManager.getInstance().workerFinished();
         public void messagesReceived(){
         private synchronized void sleep(int delay){
         private void applyProps(ConnectionFactory cf, HashMap props){
         private void send(String selector){
              Sender sender = new Sender(this.sendConnection, this.sendSession, this.producer, selector, this);
              sender.send();
         public MessageProducer createProducer(Session session){
              MessageProducer producer = null;
              String qname = (String) Properties.getInstance().getOtherProps().get(Properties.JMS_QUEUE_NAME);
              try {
                   producer = session.createProducer(session.createQueue(qname));
                   producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
              } catch (JMSException e) {
                   e.printStackTrace();
              return producer;
         public TextMessage createMessage(Session session, String selector){
              try {
                   TextMessage message = session.createTextMessage();
                   message.setStringProperty(UnitTest.KEY, selector);
                   String messageLenAsString = (String) Properties.getInstance().getOtherProps().get(Properties.JMS_MESSAGE_LENGTH);
                   int messageLen = Integer.parseInt(messageLenAsString);
                   StringBuffer buf = new StringBuffer();
                   buf.append(selector).append("-");
                   for(int i = 0; i < messageLen; i++){
                        buf.append("x");
                   message.setText(buf.toString());
                   return message;
              } catch(NumberFormatException e){
                   MyLogger.logger.error("bad message length!!");
              } catch (JMSException e) {
                   e.printStackTrace();
              return null;
    }

    If you go here:
    http://www.sun.com/software/solaris/get.jsp
    and
    1.Check Sun Java Enterprise (or the Sun Java Application Platform Suite),
    2.Click Get Download and Media
    3. Then select Systems for windows (the bar at the top)
    I beleive you can get Message Queue 3.6 SP3 from it, by only installing the Message Queue component.
    Note: it is a large download (500 Mb for Application Platform), especially for Sun Java Enterprise...
    TE

  • Treo 680 Extremely Low Battery

    I purchased a used Treo 680 through ebay.  I was sent a battery, wall charger and computer charger.  I inserted the battery & plugged it into the wall charger.  After charging overnight, the green charged light was on, & the battery icon showed it was charged. As soon as I unplugged it, a warning posted that the battery was extremely low & needed charging.  Bought a new battery & tried another charger. I am still having the same problem.  Also after I had placed the sim card into the phone, it automatically saved my numbers into the phone & I can't delete them.
    Post relates to: Treo 680 (AT&T) 
    Post relates to: Treo 680 (AT&T)
    Post relates to: Treo 680 (AT&T)

    Probably you have a hardware issue (why the other owner was selling it) that you can't charge - regards the phone numbers you can perform a hard reset and it will delete the entries.
    Post relates to: None

  • Why java file name and class name are equal

    could u explain why java file name and class name are equal in java

    The relevant section of the JLS (?7.6):
    When packages are stored in a file system (?7.2.1), the host system may choose to enforce the restriction that it is a compile-time error if a type is not found in a file under a name composed of the type name plus an extension (such as .java or .jav) if either of the following is true:
    * The type is referred to by code in other compilation units of the package in which the type is declared.
    * The type is declared public (and therefore is potentially accessible from code in other packages).
    This restriction implies that there must be at most one such type per compilation unit. This restriction makes it easy for a compiler for the Java programming language or an implementation of the Java virtual machine to find a named class within a package; for example, the source code for a public type wet.sprocket.Toad would be found in a file Toad.java in the directory wet/sprocket, and the corresponding object code would be found in the file Toad.class in the same directory.
    When packages are stored in a database (?7.2.2), the host system must not impose such restrictions. In practice, many programmers choose to put each class or interface type in its own compilation unit, whether or not it is public or is referred to by code in other compilation units.

  • Why capital letters change in lower after copying them from a PDF document, or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    Why capital letters change in lower after copying them from a PDF document (Made by InDesign), or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

  • Why Java Web Start doesn't support Pack200 out-of-the-box?

    Hello All,
    Why Java Web Start doesn't support Pack200 out-of-the-box? I was hoping that Java 6 would make things easier by adding direct support for Pack200 in Java Web Start and JNLP without needing to use servlets, etc.? All my clients are Java 5 or above so I can't push the Pack200 compressed version of the jar to every single one of them and there is no selection process needed. But I can't do it because of the servlet or complex Apache server setup requirement (it would be a headache to get customers' web server admins to set up Apache or whatever web server that way).
    My question is why is there unwillingness to add Pack200 support directly to Java Web Start and JNLP so that you can start Pack200 compressed jars just like you would start any jar using Java Web Start? Is te a technical problem?
    Thank you,
    Mete Kural

    Hallo,
    I didn�t try it, but the webstart FAQ�s read:
    Can I use Pack200 compression with the JnlpDownloadServlet?
    Yes. The JnlpDownloadServlet distributed in the samples directory of the JDK now supports Pack200. If you deploy yourfile.jar along with yourfile.jar.pack.gz the packed file will be downloaded when the client is running Java Web Start 1.5.0 or later.
    http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/faq.html#217
    For further information you may want to look at
    http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html#pack200
    The configuration of the server and the the servlet (as described in the second link) is as easy as it seems.
    I got it working on the first try and it was my first experience with websevers at all.
    Bye Schippe
    Message was edited by:
    Schippe

  • Why does my Airport Extreme

    Why do my aiport extreme and express regularly flash yellow even while functioning properly?

    Open Macintosh HD > Applications > Utiltiies > AirPort Utility
    Click Manual Setup
    Click directly on the word Status (2nd line) and a message will appear to explain why the Airport is whining
    It might be something as simple as a notice that an update is available

  • Why does my airport extreme not recognize my cable modem anymore?

    Why does my airport extreme not recognize my cable modem anymore?

    Have you tried resetting the modem? Power it down and let it rest a moment, then power it back up again.
    Also, some ISPs require physically detaching their cable from the modem for it to be fully reset. Literally unscrew it from the modem. Try that, in conjunction with powering it down.
    Don't do anything with your Extreme, other than powering it down too, in the event the modem reset does not help. Reconfiguring it may be necessary but this is not justified quite yet.

  • Why is the volume so low on my iMac when I'm using Safari?

    Why is the volume so low on my iMac when I'm using Safari?
    On both my 2008 MBP and my new 2014 iMac 27" when I listen to the audio portion of a streaming video or news story using Safari, I can hardly hear anything. I have to crank the volume all the way up just to barely hear what is being said. Any ideas on how to fix this?

    please help!! I have the new 2014 iMac 27" as well, same thing happen to me. Dont know what to do!

  • Why is the speakerphone so low in iPhone 3GS?

    Why is the speakerphone so low in iPhone 3GS? I have a maximum volume still it is not clear, Is there a way to increase it by any other method?

    I have the same issue. Low volume while using speakerphone function. At 1' (30cm) it measures at almost half the dB of a blackberry pearl speakerphone. Basically renders the speakerphone function unusable in anything but the quietest environments, and even then its questionable. There are several people in the office I work at that have a 3G and 3GS phones. 3G phones tend to be a bit better but still quiet compared to Motorola, Nokia, and Blackberries. The other 3GS phones were just as bad as mine. This is definitely not a user error.

  • Why java is called java2

    why java is called java2 and another thing that i would like to know is why it was renamed to java from its previous name OAK
    Thanx
    Manish

    why java is called java2Not to sure about this one, but I think it was a marketing decision - I guess 'Welcome to the Java 2 platform' sounds better than saying 'Welcome to the JDK 1.2.1 platform' :=)
    and another thing that i
    would like to know is why it was renamed to java from
    its previous name OAKThere was already a patented product named 'OAK', so they had to rename it to something else to avoid the law.
    >
    Thanx
    ManishA brief history of Java:
    http://java.sun.com/features/1998/05/birthday.html
    http://www.ils.unc.edu/blaze/java/javahist.html

  • Why java is platform independent ?

    what is the meaning of java is platform independent ? is it just because of java code can be run in windows/linux/unix platform ? but then C/C++ also can be run in windows/linux/unix . so why those are not called platform independent ?
    why java is called platform independent ?

    c/c++ creates object code . similary java creates bytecode . java uses interpreter JVM to execute . similary c/c++ object code also executes in any platform. so where is the real difference ?
    the classes do not need to be recompiled for different platforms. what do u mean by this ? ".....classes ( i.e bytecode) dont need recompilation ..." .....ok....but same thing is true for C/C++ object code also !! they also dont need recompilation.
    where is the difference ?

  • Blog post: Embedded Software: Disruptions Ahead - Why Java makes sense

    All,
    You may be interested in this blog post I did two days ago, which talks about the challenges in embedded software design and why Java makes sense for embedded software engineering:
    https://terrencebarr.wordpress.com/2013/08/05/embedded-software-disruptions-ahead/
    Best,
    Terrence

    (bump)

  • Why java only can display GIF file not jpeg and BMP ??

    Did anyone know why java only can display GIF file not in jpeg and BMP ?? This is because the quality of GIS is not as good as Jpeg and BMP
    any code to load the display process ??
    thx guys !!!

    you can do jpegs but im not sure about bmps.
    The only thing ive noticed is that java cant support transparent jpegs, only transparent gifs
    Jim

  • Why java allow start() method only once for a thread

    Hi ,
    Why java allows start method only once for thread . suppose
    Thread t = new Thread();
    t.start();
    say at later stage if again we call t.start() IllegalStateException is thrown , even though isAlive method returns false.
    Hence the question , why start() method is allowed only once.If you need start a thread , we need to create a new instance.

    Really. Why do you think that? Do you have any evidence? It is one of the first things I would think of, personally.Considering that the Thread API doesn't allow you to specify a stack address (only stack size), I think it demonstrates they wanted to remove that capability from their Thread API all together. That missing "capability" makes me believe they want me to believe it's not something I need to worry about when using their API... I think the exact semantics of the Thread class and its methods were driven by how to make it most understandable and usable for their customers. I'm certain this issue was one of many that was given considerable thought during the design and implementation of the JVM and the underlying runtime classes.
    Do I have any evidence? No. But if you can point me at some first-hand information on this, I'd love to read it. Most of what I've found is second or third hand accounts. (and I mean that sincerely, not as a smart-ass remark or rebuke of your comments).
    On the one hand you seem to think the Java API designers are idiots, on the other hand you think that they should be. I can't make it out.I thought my position was that the Java developers were talented enough to implement platform in whatever way their API called for; hence, the designers made a choice about how they wanted their API to be used by their customers. They decided which capabilities they wanted to include or exclude, and created an API that was consistent with their vision for this technology. While I'm certain technical limitations had an effect on the API design, I certainly don't think the API was dictated by the them.
    I think the current design of the Java Thread API was a reflection of their vision to make Threading easier and more accessible to Joe Programmer, not limitations in the implementation. I never said it was wrong or that I could do better... I just said I think they could have done something different if they decided it would have made for a better customer experience. But hey, maybe I'm wrong.

Maybe you are looking for

  • Labview 2013 report generation toolkit word 2010 insert table problem

    Hi, I am currently evaluating LV2013 with respect to the report generation toolkit for use with word 2010. My Vi/program won't insert the correct table and gives me an error message. see below:- Exception occured in Microsoft Word: The requested memb

  • Clear customer

    Hi All, I went to transaction F-32 to clear customer and gave customer number and some other selections and pressed process open items. I did this for 4 customers, they have upto 30,000 open items, for one customer the scroll bar is not there and I c

  • How to handle xml message in proxy inbound processing?

    Hi Experts, I have a scenario that is SOAP Client====>XI===>ECC. But i don't need to use the XI mapping,i skip mapping in XI and use the generated proxy inbound processing. Here is a message structure as below. <commodityList> ■<commodity> ■■<detailN

  • ODBC DSNless connection

    I created some ASP pages for a database and while onmy local machine everything was good. When uploaded to my host the connection failed and they suggested a DSNless connection, i reasearched it on the net and there were several tutorials but none of

  • Barter Purchase

    Dear All, We are having a scenario wherein when we purchase a product, payment is not done in cash instead any service is given to the supplier for similar value and as per mutual agreement, there is no financial transaction. We are thinking to map t