ConsumerFlowLimit set to 0 working incorrectly

I've got a simple program which creates a queue and sets the consumerFlowLimit on that queue. Then it creates a producer for the queue which loads the queue with 10 messages. The payload of each message is the order it was created in. So the first message is a text message "1", the second message is a text message "2", etc.
The program then creates two consumers. The first is called "c5" because it reads a single message, prints the message, then sleeps for 5 seconds. The second is named "c1" because it does the same, but sleeps for only one second.
When I set consumerFlowLimit on the queue to -1 (unlimited) I get what I expect. The 10 messages get randomly "pre-assigned" to the queues, and I get output (something) like this:
c1 read message: 2 Mon Jul 14 08:37:53 PDT 2008
c5 read message: 1 Mon Jul 14 08:37:53 PDT 2008
c1 read message: 5 Mon Jul 14 08:37:54 PDT 2008
c1 read message: 7 Mon Jul 14 08:37:55 PDT 2008
c1 read message: 9 Mon Jul 14 08:37:56 PDT 2008
c5 read message: 3 Mon Jul 14 08:37:58 PDT 2008
c5 read message: 4 Mon Jul 14 08:38:03 PDT 2008
c5 read message: 6 Mon Jul 14 08:38:08 PDT 2008
c5 read message: 8 Mon Jul 14 08:38:13 PDT 2008
c5 read message: 10 Mon Jul 14 08:38:18 PDT 2008
What I want, however, is for the messages to be pulled off and printed in order, from 1 to 10. So I don't want the broker pre-assigning any of the messages -- I want the messages assigned to consumers only when they ask for them. So, I set the consumerFlowLimit to 0. But the setting of 0 behaves exactly like it does for the setting of -1. I think this is a bug and want to know if I should enter it as such. I see the same behavior for both the 1.3 and 1.4 brokers.
I do know that I'm successfully setting consumerFlowLimit, not only because I query and print it after I set it , but because when I set it to 1, it works as expected: only one message gets pre-assigned and output looks like this:
c5 read message: 1 Mon Jul 14 09:12:32 PDT 2008
c1 read message: 2 Mon Jul 14 09:12:32 PDT 2008
c1 read message: 4 Mon Jul 14 09:12:33 PDT 2008
c1 read message: 5 Mon Jul 14 09:12:34 PDT 2008
c1 read message: 6 Mon Jul 14 09:12:35 PDT 2008
c1 read message: 7 Mon Jul 14 09:12:36 PDT 2008
c5 read message: 3 Mon Jul 14 09:12:37 PDT 2008
c1 read message: 8 Mon Jul 14 09:12:37 PDT 2008
c1 read message: 10 Mon Jul 14 09:12:38 PDT 2008
c5 read message: 9 Mon Jul 14 09:12:42 PDT 2008
Thanks if you can help.

Challenge to Sun: Explain why there are no settings that allow this program to finish in 8 seconds every time it runs. 1 producer queues 10 messages. 2 consumers drain the queue. One sleeps 1 second after it dequeues a message, the other sleeps 5 seconds. Two messages should be dequeued at the 0 second marker and the 5 second marker, and one message at other second markers. 10 messages in 8 seconds. Should be easy, but openmq can't do it.
Command line looks like this once you compile it:
java -cp build\classes;lib\imqjmx.jar;lib\jms.jar;lib\imq.jar my.example.Flow 1 -1
The parameters are for the consumerFlowLimit and maxNumActiveConsumers attributes. Set them any way you like. Nothing will get you to 8 seconds consistently.
package my.example;
import java.util.Date;
import javax.jms.Connection;
import javax.jms.DeliveryMode;
import javax.jms.Destination;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.management.Attribute;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.management.remote.JMXConnector;
import com.sun.messaging.AdminConnectionFactory;
import com.sun.messaging.ConnectionConfiguration;
import com.sun.messaging.jms.management.server.DestinationAttributes;
import com.sun.messaging.jms.management.server.DestinationType;
import com.sun.messaging.jms.management.server.MQObjectName;
public class Flow {
private static com.sun.messaging.ConnectionFactory
connectionFactory = new com.sun.messaging.ConnectionFactory();
private String brokerName;
private int brokerPort;
private long flowLimit;
private int activeConsumers;
public Flow(String brokerName, int brokerPort, long flowLimit, int activeConsumers) {
this.brokerName = brokerName;
this.brokerPort = brokerPort;
this.flowLimit = flowLimit;
this.activeConsumers = activeConsumers;
public void start() {
try {
connectionFactory.setProperty(ConnectionConfiguration.imqAddressList,
this.brokerName + ":" + this.brokerPort);
Connection connection = connectionFactory.createConnection();
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
String queueName = "myQueue";
Destination myQueue = session.createQueue(queueName);
MessageProducer producer = session.createProducer(myQueue);
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
AdminConnectionFactory acf = new AdminConnectionFactory();
JMXConnector jmxc = acf.createConnection("admin", "admin");
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
ObjectName destConfigName = MQObjectName.createDestinationConfig(DestinationType.QUEUE, queueName);
Attribute attr = new Attribute(DestinationAttributes.CONSUMER_FLOW_LIMIT, flowLimit);
mbsc.setAttribute(destConfigName, attr);
attr = new Attribute(DestinationAttributes.MAX_NUM_ACTIVE_CONSUMERS, activeConsumers);
mbsc.setAttribute(destConfigName, attr);
Long longAttrValue = (Long)mbsc.getAttribute(destConfigName, DestinationAttributes.CONSUMER_FLOW_LIMIT);
Integer attrValue = (Integer)mbsc.getAttribute(destConfigName, DestinationAttributes.MAX_NUM_ACTIVE_CONSUMERS);
jmxc.close();
System.out.println( "consumerFlowLimit: " + longAttrValue );
System.out.println( "maxNumActiveConsumers: " + attrValue);
// Pre-load the queue with 10 messages numbered from 1 to 10
for (int i = 1; i <= 10; i++) {
TextMessage message = session.createTextMessage();
message.setText(String.valueOf(i));
producer.send(message);
System.out.println("");
// Kick off two consumers
new Thread(new Consumer("c5", 5)).start();
new Thread(new Consumer("c1", 1)).start();
} catch (Exception e) {
System.out.println( "Exception occurred: " + e);
public static void main(String[] args) {
String limit = "1";
String activeConsumers = "-1";
if (args.length > 0) {
limit = args[0];
if (args.length > 1) {
activeConsumers = args[1];
Flow flow = new Flow("localhost", 7676, Long.parseLong(limit), Integer.parseInt(activeConsumers));
flow.start();
class Consumer implements Runnable {
private String name;
private int sleepSeconds;
public Consumer(String name, int sleepSeconds) {
this.name = name;
this.sleepSeconds = sleepSeconds;
public void run() {
try {
String queueName = "myQueue";
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination myQueue = session.createQueue(queueName);
MessageConsumer consumer = session.createConsumer(myQueue);
connection.start();
while (true) {
TextMessage message = (TextMessage) consumer.receive();
System.out.println(this.name + " read message: " + message.getText() + "\t" + (new Date()));
Thread.sleep(sleepSeconds * 1000);
} catch (Exception e) {
System.out.println("Exception occurred: " + e);
}

Similar Messages

  • Dynamic rooting (User Record) setting is not working in Nakisa OrgChart SP3

    Dear All
    The Dynamic rooting setting is not working in the Nakisa OrgChart SP3.
    It is giving an error message - "Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified, or no valid org structure can be found for the selected effective date. Please change the root of the chart or select another effective date."
    We followed the same steps as given in the Admin guide of SP3 (P.no. 109 - shown below)
    In Orgchart --> General Settings:
    * Select the Org chart root value source.
    User Record: Retrieves the record specified in the next step from the employee data element.
    *Do one of the following to define the org chart root:
    If User Record was selected in the previous step, select the field containing the ID of the required organizational object in the employee data element from the User record field drop-down list. For example, if you wish to root the org chart at the org unit of the logged-in user, select the field containing the org unit ID. Hence, we have selected the Org unit ID.
    Note:
    We had enabled single sign-on with logon tickets
    Retained the standard settings in Security Settings --> Employee Source
    Had provided full authorization to the roles
    If we use the "OrgChart Root" option available in 'Orgchart root value source', the org structure gets displayed correctly from the root object defined.
    As this is an standard functionality, Kindly guide us in resolving the issue.
    Regards
    Ravindra

    Ravindra.
    You don't have to and shouldn't always include the username and password parameters for the SAP Connection string.  When you omit them it will use the user's login credentials.
    Remember though that:
    The SAPRoleMappingConnection will need them included in order to get the details for the user in the first place.
    Without the username and password specified in a connection string you can't click the option to test the connection and result in a successful connection.  Remember unable to connect does not necessarily equate to wrongly configured.
    I've filtered the log file for errors and the following entries were flagged up:
    26 Jun 2012 10:00:06 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 13:13:52 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 13:43:49 ERROR com.nakisa.Logger  - java.lang.reflect.InvocationTargetException
    26 Jun 2012 13:55:09 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 14:32:03 ERROR com.nakisa.Logger  - com.nakisa.framework.utility.Files : deleteFile : java.io.IOException: Unable to delete file: E:\usr\sap\D15\J00\j2ee\cluster\apps\Nakisa\OrgChart\servlet_jsp\OrgChart\root\.system\Admin_Config\__000__THY_SAP_Live_RFC_01\AppResources\attr.txt
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:44 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:48 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : The dataelement ( SAPPositionVacancyDataElement ) is not defined.
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - BAPI_SAP_OTFProcessor_LinkedDataElement : while trying to invoke the method com.nakisa.framework.data.Command.getType() of an object loaded from local variable 'p_cmd'
    26 Jun 2012 15:47:55 ERROR com.nakisa.Logger  - com.nakisa.framework.webelement.charting.data.ChartingData : createNodesFromData : Notes Error: NullPointerException
    At the very least it looks like SAPPositionVacancyDataElement is missing and whilst the other errors around it are unfamiliar I wonder if it might be a good first step to see if you can track down the reference to and existence of this data element?  That being said it looks like your last test occurred well over an hour after this (so you may have already resolved it) and resulted in nothing but information messages.  If that is the case it might be worth "rolling" your log file or manually trimming it to the right time frame when posting it?  Otherwise it can be misleading as people could flag up issues you have already resolved.
    So assuming you haven't tried Luke's suggestion (which should only take a couple of minutes to do) I think you should go back and do so right away .
    Regards,
    Stephen.

  • Setting of WorkStatus is incorrect

    Hello all
    I am trying to send data with schedule input.
    When i press "send data" ---> "Validate submission before sending", i get this error: "setting of WorkStatus is incorrect. Please contact your administrator".
    I cheked the "Work Status" in my Appset, nothing seems to be wrong.
    Please advice.
    Best regards,
    Yuval

    Hi Raju
    Im on 7.5 sp9 and having this very same issue and not getting anywhere with SAP support.
    How can you change the work status order. The work status settings screen does not seem to let me change the dimension details.
    Any help would be greatly appreciated.

  • HT3228 I set up my work e-mail on iphone.  When I try to send an e-mail, an error code says "Cannot Send Mail", "recipient rejected by server because it does not allow relaying".  What does this mean and how do I correct it?

    I set up my work e-mail account on my iphone 4S.  When I try to send an e-mail message from my phone, an error message occurs "Cannot Send Mail" - "recipient was rejected by the server because it does not allow relaying".  What does this mean and how do I correct it?

    Get the correct mail server settings from your IT department.

  • Hi, I have an iTunes account on my laptop set up to work with my old iPod. I now have an iPad and new iPod but set up under a different account- can I put all the songs from my iTunes onto the new devices. Thanks.

    Hi, I have an iTunes account on my laptop set up to work with my old iPod. I now have an iPad and new iPod but set up under a different account- can I put all the songs from my iTunes onto the new devices. Thanks.

    Yes
    Put all the music on one computer, make sure it is authorized for all accounts, sync.

  • New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer run

    New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer running windows 8.1  Please help, Mainly use to share pictures.  Thanks!

    One thing puzzles me:
    RedClayFarmer wrote:
    I then found one suggestion that the problem might involve permissions. The suggestion was to right click PhotoshopElementsOrganizer.exe in its installation folder (which on my computer is at at D:\Photo\Elements 11 Organizer) and run Organizer as an administrator. This also failed.
    I don't understand why running the exe from the installation folder would have worked.
    I would have simply tried to run that exe from its real location :
    Sorry, I can't help you more about permissions...

  • How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , a white window appears .

    How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .

    By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • The ringer setting is not working on my iPhone 4s

    My iPhone fell into my pond for less than 10 secs. I pulled it out in time to dry it off and shake some of the water out. I made sure the screen was still working and sounds were functioning then I turned it off and left it in a bag or rice for 24 hrs. The next day I took it out and it was working fine. Now suddenly today, the ringer setting is not working. When I go into settings>sounds I press on ringtone and it seems to be working. Speakers are fine and when someone calls I have no problem. I can also hear the ringtones. But when someone txts me or when I get notifications it doesn't have any sound? The alarms don't work and the sounds in apps don't work. When I put the charger in, it doesn't make a sound. It vibrates only except when someone calls me... My headphone jack seems to be working fine because I can hear everything even the text tones and sounds in apps... What should I do? How much will I have to pay to get someone at apple to fix this problem? I'm assuming there is still some moisture in the phone maybe? It was working for a week until today I'm not planing to upgade to the iPhone 5 anytime soon. Btw, the volume buttons do work it's just when I press on it, it doesn't show the bars when you press up or down... it's just blank.

    If it's physically stuck it might be best to bring it into the Apple store at George Street Sydney.
    Set up an appointment with the Apple store via the website http://www.apple.com/au/support/contact/

  • I need help authenticating my outgoing server settings in setting up my work email on my Galaxy S5.  It says unable to authenticate or connect to server and I even called helpdesk at my email support and they tried every possible port (80, 25, 3535 or 465

    I need help authenticating my outgoing server settings in setting up my work email on my Galaxy S5.  It says unable to authenticate or connect to server and I even called helpdesk at my email support and they tried every possible port (80, 25, 3535 or 465 SSL) and none of them work. Please help!

    You will need to get the required info to create/access the account with an email client from your school.
    Are you currently accessing the account with an email client on your computer - if you have a Mac with the Mail.app, or if you have a PC with Outlook Express, etc.? If so, you can get the required account settings there.

  • Dolby Digital Auto Setting Doesn't Work w/4.4.2?

    I have a bunch of old movies that were recorded in stereo, pre-Dolby, and of course, a bunch of newer in Dolby Digital.  After upgrading to Apple TV iOS 4.4.2 yesterday, I now find that the Settings/Audio & Video/Dolby Digital/Auto setting no longer works. 
    I just started a new iTunes downloaded movie with Dolby Digital 5.1 sound and noticed that it was playing in PCM stereo-only mode for some reason.  I then tried a couple of other older iTunes downloaded movies with 5.1 sound, and they all were playing in the same old PCM stereo mode, as well.  To get the new movie to play in 5.1 sound, I had to manually change the above Dolby Digital setting to ON.
    A similar issue applies to older movies in pre-Dolby stereo.  If the above setting is set to Dolby Digital ON, those older movies switch from normal stereo to Dolby Digital 1.0/Center channel only sound, so I have to either switch the Dolby Digital setting to OFF or back to Auto, which defaults to PCM stereo for everything now.
    Is anyone else experiencing this change?  The Auto function worked perfectly for me before this upgrade.
    I'm using an Apple TV 2 with an optical connection to my audio amplifier.  The movie is streaming over my wired gigabit Ethernet home network from my iMac.

    Seems to be an issue for some of us since 4.4; see other thread.
    https://discussions.apple.com/message/16447970#16447970

  • I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gon

    I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gone. I had a small icon on the upper right side of my toolbar. I used it all the time to keep separate windows for news, financial items, travel plans, etc. Has this been removed from Firefox?

    Hi,
    The [https://support.mozilla.org/en-US/kb/tab-groups-organize-tabs Tab Groups] feature is still present. You can try to right-click the + after the last tab and [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars Customize]. If the icon is hidden behind another, or if it's available inside the Customize mini window, you can place it back. If the problem persists, you can also try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen.

  • I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?

    I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?  Also, how do I add co-workers to my work time capsule and wife to my home time capsule?  Thank you!

    You cannot have two different TC setups.. at least until Mountain Lion.. it did introduce some changes but I am not sure if you can setup two different configurations for TM.. you can use two different devices to back up to. I doubt this will help you.
    You might be better using a real backup software.. superduper, CCC, chronosync etc.
    The TC by default is available to any Mac in the network to do backups. TM will sort itself out and put each computer on a different backup. These are kept in separate sparsebundles.. so that is all fine.

  • HP Support Web Page Failing "Errors on this page might cause it to work incorrectly"

    My computer is an HP DV6930US running Fresh Windows Vista 64bit, then SP2 and IE9 and Java 10....The only installed is Norton 360...I have a lot of problems with this computer and need to restore it to its original state before it started to go crazy...Giving me a lot of trouble ifgx display drivers, usb port s not working, wifi not working, etc...
    After I resotred I have decide  to visit HP to download some drivers and the HP Support Web is giving me errors and the format is not good enoguh and is not working...it is like a going round in circles when I try to Download drives...they do not appears even when i select the software and drivers downloads...
    Anyway...The "Errors on this page might cause it to work incorrectly" pop up windows are comming all the time and the web page really does not work. I tries to run IE9 in 32bit or in 64bit but it is the same..others web pages are working ok.... I have Screen Shots of erros in case that HP interest them..
    Please help to fix the problem in order to download the proper drivers for my HP pavillion...

    Thanks for your reply...I was installing Firefox..installtion is finishing....I am installing from a fresh startup after many crashes in my HP DV6930US...I am very cautiuos in installing more than I need now that I am in a middle of full restoration process...I let you know how firefox does it... I remmenber in a nother HP Pavillion my MotherinLaw has, That I had to install drivers from FireFox since I had a similar problem with the web page...I just search and pick from the serch list the downloadables links in FireFox, it had problems too...with IE9 had similar problems....However, in this case with IE9 I can not find any downloadable link from HP using IE9...I will try FFx...
    Thanks;

  • I am setting up up my new ipad 2. On the email icon I set up my work address thru Microsoft Exchange once I did that it did does noy give me an opportunity to see the other mail venues such as AOL or Gmail it automatically opens to my work address.

    I am setting up my new ipad 2. On the mail icon I set up my work address thru Microsoft Exchange once I did that the mail icon automatically goes to my work address and it does not give me the choice of the mail icon again how do I get that back?

    If you mean when you are reading email in the mail app.....
    Tap on the word "Mailboxes" in the upper left corner of the mail app - next to the name of your Exchange email account. That will take you back to the list of all of the Mailboxes on your iPad.
    The mail app will always go back to where you were when you left the app. So if you were reading mail in your Exchange account and then you leave the app (without quitting the app) it will take you back to that email that you were reading when you come back.

  • Setting Cash Desk work center

    Kindly provide step by step guide for Setting Cash Desk work Center

    hi
    aligning work center roles also help here to acheive this, some more scenarios,
    chk this [Service desk roles--Restrict messge processor to confirm the message status|Service desk roles--Restrict messge processor to confirm the message status]
    and
    [Re: How to set a business partner as a key user in service desk?|Re: How to set a business partner as a key user in service desk?]
    jansi

Maybe you are looking for

  • PS 2013 - Autofilter in SQL Reporting Services Reports

    Hi, Is it possible to have an autofilter option on the columns of a Reporting Services table in BI? I am using Project Server 2013 and Reporting Services 2013. Thank you. Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

  • Remove file name from appearing as a title

    How can I stop the file path appearing as a title on my video?

  • HTTP Probe

    How does the HTTP Probe function work ? Setting it up appears simple but it's not clear to me whether 1) the Local Director's will generate the probe traffic themselves or 2) do they just monitor return codes in client query's ? If they're just monit

  • IMac computer turns on but screen is dark with lit curser

    My Mac turns on but I have a dark screen with alit curser.  Any ideas?

  • Safari 7.0.1 (9537.73.11) crashing every 10-15 minutes

    Running OS X 10.8.5. Safari crashes constantly, resetting Safari has not helped.  Error information is below.  Any ideas?  Thanks! =========================================================== Process:         Safari [83697] Path: /Applications/Safari.